Synthesis and antimicrobial activity of some novel 2,5- and/or 6-substituted benzoxazole and benzimidazole derivatives.