Dicyclomine is commonly prescribed to treat irritable bowel syndrome (IBS). As an anticholinergic medication, it relieves abdominal cramps by relaxing gut muscles, reducing spasms, and slowing gastrointestinal movements through blocking specific natural substances in the body.