By aiming to design new antimicrobial agents, we prepared new series of thiazolidin‐4‐ones(12a–d), imidazolin‐4‐ones(13a–d), and azetidin‐2‐ones (14a–d), having pyridine and pyrimidine moieties. Chemical structures of these derivatives were elucidated by the use of spectral and elemental analyses. All the new substituted pyridopyrimidines were subjected to in vitro antimicrobial testing by estimating the zone of inhibition toward Bacillus subtilis and Staphylococcus aureus, as examples of bacterial species, in addition to Aspergillus flavus and Candida albicans, as examples of fungal species. The results of antimicrobial testing detected that all the screened derivatives displayed antibacterial effect; especially azetidin‐2‐one derivative, (14c), was the most active one. Regarding the antifungal potential, only thiazolidinone derivatives, 12a and 12c, and the imidazolinone, 13c, displayed inhibitory activity toward Aspergillus flavus, while all the tested compounds, 12a–d, 13a–d, and 14a–d, except 14a, produced inhibitory potential toward Candida albicans. Docking studies of the most active antimicrobial agents, 12c, 13c, and 14c, within GLN‐6‐P, recorded good scores with several binding interactions with the active site.