A one-pot synthesis strategy was developed to prepare magnetic molecularly imprinted microspheres for the selective recognition and fast removal of 17-beta-estradiol.