Dicyclomine is an anticholinergic agent used to relieve smooth muscle spasms in the gastrointestinal tract, particularly in conditions like irritable bowel syndrome (IBS). It works by relaxing the muscles in the gut and reducing stomach cramps and discomfort. Its effect is more symptomatic than curative.