Uses. Metronidazole is used to treat a variety of infections. It belongs to a class of antibiotics known as nitroimidazoles. It works by stopping the growth of bacteria and protozoa. This antibiotic only treats bacterial and protozoal infections.