A total of twenty novel 1,2,4-triazole-acylhydrazone derivatives containing the quinazolin-4-one moiety were synthesized via the condensation reaction of triazole hydrazide with various aromatic aldehydes, and fully characterized by 1 H NMR, 13 C NMR and HRMS spectra. Antimicrobial assays in vitro indicated that most of the target compounds exhibited good antibacterial activities against the pathogenic phytobacteria Xanthomonas oryzae pv. oryzae (Xoo) and Xanthomonas axonopodis pv. citri (Xac). Notably, N'-(2-methoxybenzylidene)-1- (2-(4-oxoquinazolin-3(4H)-yl)ethyl)-1H-1,2,4-triazole-3-acylhydrazone) (7q) displayed the inhibition rate of 100% against the above two bacteria at 100 μg/mL. Additionally, 1-(2-(4-oxo- 2,4-triazole-3-acylhydrazone (7l), and N'-(4-methoxybenzylidene)-1-(2-(4-oxoquinazolin-3(4H)-yl)ethyl)-1H-1,2,4-triazole-3-acylhydrazone (7o) were found to possess the inhibition rate of >55% against the fungus Botrytis cinerea Pers. at 50 μg/mL.