Dihydro-2-pyridone derivatives have been prepared efficiently via a one-pot four-component reaction of benzaldehyde derivatives, Meldrum's acid, methyl acetoacetate and ammonium acetate in the presence of sulphonic acid-functionalized ordered nanoporous SBA-15 as a nano heterogeneous catalyst under solvent-free conditions. This process is a simple, environmentally friendly, rapid and high yielding reaction.