A series of 5-halogenomethylsulfonylbenzimidazole and benzotriazole derivatives was synthesized as potential antibacterial agents. A new method of synthesis of benzimidazoles was developed. The antimicrobial activities of these compounds were tested against a series of reference and clinical strains. The reference strains include Gram-positive bacteria (S. aureus, S. epidermidis, B. subtilis, B. cereus