A sustainable green one pot procedure for the synthesis of dihydropyrimidinones (DHPMs) derivatives by a three-component reaction of β-ketoester derivatives, aldehyde and urea or thiourea over the alkali-treated H-ZSM-5 zeolite under ball-milling has been developed. The product was isolated by simple washing of the crude reaction residue with ethyl acetate followed by evaporation of solvent. The hierachical zeolite catalyst (MFI27_6) showed high yield (86–96%) of dihydropyrimidinones (DHPMs), in very short time (10-30 min). The catalyst is recycled for subsequent reactions in four runs without appreciable loss of activity and high yields of products provide efficient protocol for Biginelli reactions.