Dicyclomine is used to treat the symptoms of irritable bowel syndrome. Dicyclomine is in a class of medications called anticholinergics. It relieves muscle spasms in the gastrointestinal tract by blocking the activity of a certain natural substance in the body.