Imidazole/benzotriazole analogues substituted piperidin-4-one derivatives (17-26) have been synthesized. Their chemical structures were characterized by IR, 1H NMR, 13C NMR and mass spectral analysis. In addition, single crystal X-ray diffraction has also been recorded for compounds 21 and 23. The synthesized compounds were subjected to their in vitro antibacterial and antifungal activities against pathogenic microbial strains. The results pointed out that compounds 19 & 24 against B. subtilis and 20 & 24 against E. coli were explored superior inhibition activity.