Dicyclomine is an antispasmodic medication used for the treatment of abdominal pain and spasms caused by irritable bowel syndrome (IBS).