Enaminone, (2E)-1-[4-(1H-imidazol-1-yl) phenyl]-4-methylpent-2-en-1-one (II) was synthesized by refluxing 1-[4-(1H-imidazol-1-yl) phenyl] ethan-1-one (I) with dimethylforamide dimethylacetal (DMF–DMA) under solvent-free condition for 12 hours. Finally, the dihydropyrimidinone derivatives containing imidazole moiety (1–15) were obtained by reacting enaminone, (2E)-1-[4-(1H-imidazol-1-yl) phenyl]-4-methylpent-2-en-1-one (II) with urea and different substituted benzaldehydes in the presence of glacial acetic acid. Dihydropyrimidinone derivatives containing imidazole moiety were synthesized in excellent yield by means of a simple and efficient method. All the compounds were confirmed by elemental analysis. The structures of all the compounds were confirmed by modern spectroscopic methods.