Loperamide treats diarrhea by slowing down the speed of digestion. This gives the small intestines the opportunity to more fully absorb nutrients and fluids from foods. Loperamide can be found at any drug store as one of many brand names (e.g. Imodium). However, your doctor may prescribe prescription-strength loperamide if you have a more serious case of diarrhea.