Metronidazole is an antibiotic that is used to treat a wide variety of infections. It works by stopping the growth of certain bacteria and parasites. Metronidazole may also be used with other medications to treat certain stomach/intestinal ulcers caused by a bacteria (H. pylori).