A novel class of substituted 4-aryl-2,6-dimethyl-1,4-dihydropyridine-3,5-dicarboxamide has been synthesized by simple, modified Hantzsch condensation reaction using N-arylacetoacetamides, aryl aldehydes and ammonia. Characterisation of the newly synthesized compounds was carried out by spectral analysis (IR, 1H NMR and Mass Spectroscopy). Antimicrobial activity against Staphylococcus aureus, Escherichia coli and Candida albicans and antiulcer activity by aspirin induced and pyloric ligation ulcer model was studied. Results revealed that most of the compounds exhibit significant antimicrobial activity along with antiulcer activity. The compound 6i 4-dimethylamino phenyl group at 4th position of 1,4-dihydropyridine had shown 65% ulcer protection at 10 mg/kg administration in male albino rats. © Published under licence by IOP Publishing Ltd.