In the current study, 1,4-dihydropyridine and polyhydroquinoline derivatives were efficiently synthesized under solvent-less conditions with a magnetic catalyst containing novel acidic ionic liquid functionalized silica modified Fe3O4 nanoparticles through a four component combination of β-ketoester, aldehydes and ammonium acetate (1, 2, 2). Several approaches have been reported for synthesizing these derivatives, while each of these approaches have some weaknesses including long time of reaction, excess of volatile organic solvent, low efficiency, costly reagents, complex operation, high temperatures, production of a number of side products, and difficult catalyst recovery. The simple operation, short time of reaction (5–30min) and the high efficiency (80–94%) are the special advantages of this technique. The immobilized catalyst exhibited an appropriate thermal stability and excellent recyclability. Different methods such as FT-IR, SEM, EDX, TGA-DTA, and VSM were used to confirm and characterize the catalyst.