A process for the preparation of dihydropyridines of formula (V) by Knoevenagel condensation of a benzaldehyde with an acetoacetic ester in the presence of beta -alanine as a catalyst, and subsequent cyclocondensation of the resulting benzylidene acetoacetic ester with an amino crotonic ester.