A series of pyridine compounds were prepared by using 3‐(dimethylamino)‐1‐(pyridin‐4‐yl)prop‐2‐en‐1‐one (14) as a precursor. The reaction of 14 with different reagents afforded different new heterocyclic compounds. All the new compounds were characterized by spectroscopic analyses. Moreover, the density function theory study was made to establish the geometry of the tested compounds. The antimicrobial activities of the newly prepared pyridine derivatives were studied against Gram‐positive bacteria (Bacillus subtilis and Bacillus thuringiensis) and Gram‐negative bacteria (Escherichia coli and Pseudomonas aeruginosa) and fungi (Fusarium oxysporum and Botrytis fabae) by the minimal inhibitory concentration method. Compounds belonging to the pyran 32, pyridine 33, indenopyran 34, thiazolopyridine 35, and chromene 39 series displayed a high antimicrobial activity. It was found that the experimental results of the biological evaluation were in agreement with the molecular modeling studies.