We applied magnetic NiFe2O4 as a recoverable catalyst in the multicomponent reaction of substituted pyrroles. Magnetic NiFe2O4 could be recovered from the reaction easily with an external magnet and reused nine times without significant activity loss. The yields are high.