In this work, a magnetic ion imprinted polymer (MIIP) with specific recognition capability toward cadmium was prepared by a sol–gel method using waste beer yeast, which is a macromolecule biomass, as a functional monomer.