A combined computer simulation and experimental study of magnetic a molecularly imprinted polymer was put forward and verified.