Preparation and application of novel and reusable magnetic nanoparticles with poly N,N-dimethylaniline-formaldehyde support as a heterogeneous basic catalyst have been described. The reported catalyst was characterized by Fourier transform infrared spectroscopy, scanning electron microscopy, X-ray diffraction patterns, transmission electron microscopy, energy dispersive X-ray spectroscopy, thermogravimetric analysis and vibrating sample magnetometry. The catalytic performance of this organic-inorganic hybrid nanomaterial has been studied for the green synthesis of 2-amino-3-cyanopyridine derivatives through one-pot four-component reactions. An eco-friendly method, short reaction time, high yield and easy work-up procedure are the advantages of this new methodology over earlier ones.