The reaction of 3-(chloroacetylamino)-2-methyl-4(3H)-quinazolinone (3)with 2-substituted-5-mercapto-1,3,4-oxadiazoles (4a) and 2- substituted-5 mercapto-1,2,4-4H-triazoles(4b) resulted in formation of 3-(5-substituted 1,3,4-oxadiazol-2-y1) thioacetylamino-2-methyl- 4(3H)-quinazolinones and 3-(4-amino-5-substituted-1,2,4-4H-triazol-3-yl)thioacetylamino-2-methyl-4(3H)-quinazolinones(5a-q). The prepared compounds were evaluated for their antimicrobial activity. All the tested compounds containing 1,2,4-(4H)triazole ring showed antifungal activity.