used?to treat traveler's diarrhea that is caused by a bacteria called Escherichia coli. It is also used to prevent hepatic encephalopathy, which is a condition that occurs when your liver does not work normally. This medicine is also used to treat irritable bowel syndrome with diarrhea.