In this paper, a series of poly ammonium shale inhibitors were prepared from diethylamine, epichlorohydrin, and melamine (DEM) and their inhibition to shale were evaluated by bentonite linear expansion test, anti-swelling experiments, and mud ball experiments. | Preparation and application of melamine cross-linked poly ammonium as shale inhibitor