A simple method for the functionalization of magnetic nanoparticles, which is achieved by the attachment of metalloporphyrin onto the surface of amine functionalized silica-coated magnetic nanoparticles via an amide bond.