Flagyl is an antibiotic. It fights bacteria in your body. Flagyl is used to treat bacterial infections of the stomach, skin, joints, and respiratory tract. Flagyl selectively blocks some of the functions within the bacterial cells and the parasites resulting in their death. Flagyl may also be used for purposes not listed in this medication guide.