Fe3O4@SiO2-PTMS-Guanidine-SA nanoparticles used as an efective catalyst for the synthesis of N-substituted pyrroles. Pyrroles were synthesized from the reaction between primary amine derivatives and 2,5-hexanedione with high to excellent yields under mild reaction conditions. After completion of the reaction, Fe3O4@SiO2-PTMS-Guanidine-SA magnetic nanoparticles could be recovered easily from the reaction mixture by an external magnet and reused. This catalyst was characterized by FT-IR spectroscopy, scanning electron microscopy, energy-dispersive X-ray spectroscopy, X-ray difraction, thermogravimetric analysis and vibrating-sample magnetometry techniques.