The invention is a molecularly imprinted polymer and a preparation method thereof. The name of the molecularly imprinted polymer is a molecularly imprinted polymer containing a three-membered phenanthrene ring skeleton, and its preparation method is: using maleic rosin ethylene glycol propylene ester as a crosslinking agent, dehydroabietylamine or theophylline as a template molecule, Acrylic acid or derivatives of acrylic acid such as methacrylic acid, methyl methacrylate, acrylamide, etc. are used as monomers, in a 500 ml three-necked flask, gasoline-chloroform-water mixed solvent is used as a solvent, an initiator is added, heated, Stir and carry out free radical suspension polymerization to obtain a polymer product, then use a methanol-acetic acid mixture to elute the polymer in a Soxhlet extractor, remove the template molecule dehydroabietylamine or theophylline, and obtain a Molecularly imprinted polymers, that is, molecularly imprinted polymers containing a three-membered phenanthrene ring skeleton, can be used for the adsorption and separation of organic compounds.