Polyhydroquinolines were obtained from a sequential four-component reaction between dimedone or 1,3-cyclohexandione, ethyl acetoacetate, or methyl acetoacetate as a β-ketoester, aldehydes, and ammonium acetate, with Mo@GAA-Fe3O4 MNPs as a green nanocatalyst.