loperamide
Nonprescription (over-the-counter) loperamide is used to control acute diarrhea (loose stools that come on suddenly and usually lasts less than 2 weeks), including travelers' diarrhea. Prescription loperamide is also used to control acute diarrhea and also ongoing diarrhea associated with inflammatory bowel disease (IBD; condition in which the lining of all or part of the intestine is swollen, irritated, or has sores). Prescription loperamide is also used to reduce the amount of fluid in people with ileostomies (surgery to create an opening for waste to leave the body through the abdomen). Loperamide is in a class of medications called antidiarrheal agents. It works by decreasing the flow of fluids and electrolytes into the bowel and by slowing down the movement of the bowel to decrease the number of bowel movements.
Full drug information on MedlinePlus →loperamide