Flagyl is used to treat select infections brought about by bacteria and other organisms in various parts of the body. It is also used to prevent or treat assured problems that may occur during surgery. Flagyl is actually an antibiotic that belongs to a group of medications known as nitroimidazoles. This medicine works by killing or stopping the growth of bacteria and different organisms causing these infections. Your own physician could have suggested Flagyl for another cause.