The invention provides a method for preparing a magnetic attapulgite molecularly imprinted material, which comprises the following steps: dissolving ferric chloride and sodium acetate in ethylene glycol, adding carboxylated carbon nanotubes and attapulgite, ultrasonically dispersing, and using high pressure React in the reactor to obtain magnetic particles; disperse the magnetic particles in ethanol aqueous solution, add ammonia water and tetraethyl orthosilicate dropwise in turn, stir at room temperature, wash, separate and dry, then disperse in purified toluene, under nitrogen protection, add alkenyl silane modifier and triethylamine, reflux reaction, washing and drying to obtain silane-modified magnetic silica particles; 4,4-methylene-two-(2-chloroaniline) and vinylpyridine were added to toluene, mixed and pre- Assemble, add silane-modified magnetic silica gel particles and ethylene glycol dimethacrylate, then add azobisisobutyronitrile, heat the reaction, separate under the action of an external magnetic field, wash repeatedly, and dry in vacuum to obtain a magnetic attapulgite Soil Molecularly Imprinted Materials.