The invention relates to the preparation of an alkylphenol (including bisphenol A, octylphenol and nonylphenol) composite template molecularly imprinted polymer and its application in the removal and analysis of alkylphenols. Graphene oxide was prepared by the improved Hummer method, and ferric oxide particles were loaded on its surface, covered with mesoporous silicon, and then double bonds were grafted. Using the obtained material as a carrier, bisphenol A, octylphenol, and nonylphenol are jointly used as template molecules, and 4-vinylbenzoic acid, ethylene glycol dimethacrylate, and 2,2'-azobisisobutyronitrile are respectively used as template molecules. Functional monomers, cross-linking agents and initiators, polymerized at 60°C. The template molecule was eluted with methanol: acetic acid (9:1, V:V) mixture, and dried in vacuum to obtain an alkylphenol composite template molecularly imprinted polymer. The material combines the specific recognition of molecular imprinting and the easy separation of magnetic materials, and can selectively adsorb bisphenol A, octylphenol, and nonylphenol in water at the same time, with adsorption capacities of 16.81, 35.97, and 61.73 mg / g, reaches adsorption equilibrium within 30 minutes, can be reused more than 5 times, and can be used for the removal and detection of alkylphenols.