The invention discloses a preparation method of a mixed four-template magnetic imprinted polymer. The preparation method comprises the following steps of preparation and modification of magnetic microspheres, dissolving, pre-polymerizing, polymerizing, template eluting, drying and the like. The preparation method is characterized in that four matters are used as templates; in a polymerizing process, the modified magnetic microspheres are added to synthesize a magnetic molecular imprinted polymer with specificity identification on triazole matters, pyrethroid matters, triazine matters and carbamate matters. The preparation method has the advantages that the preparation process is easily controlled, the function design is convenient, the prepared polymer has high stability and strength and can resist acid and alkaline, grinding and column loading are not needed, and the efficiency of adsorbing triazole, pyrethroid, triazine and carbamate matters is high; the preparation method is suitable for preparing the microspheres of the mixed four-template magnetic imprinted polymer, and the prepared polymer can be further used for separating and measuring samples when multiple residues of triazole, pyrethroid, triazine and carbamate pesticides in foods, feeds and other samples are simultaneously analyzed.