Flagyl is used to treat certain problems brought about by bacteria and some other organisms in different parts of the body. It is also used to stop or treat some problems that may occur during procedures. Flagyl is definitely an antibiotic that belongs to a group of medicines also known as nitroimidazoles. This medication really works by killing or stopping the development of bacteria and different organisms causing these issues. The doctor could have prescribed Flagyl for another factor.