Opioids were one of the earliest classes of medications used for pain across a variety of conditions, but morbidity and mortality have been increasingly associated with their chronic use. Despite these negative consequences, chronic opioid use is increasing worldwide, with the USA and Canada having the highest rates. Chronic opioid use for noncancer pain can have particularly negative effects in the gastrointestinal and central nervous systems, including opioid-induced constipation, narcotic bowel syndrome, worsening psychopathology and addiction. This Review summarizes the evidence of opioid misuse in gastroenterology, including the lack of evidence of a benefit from these drugs, as well as the risk of harm and negative consequences of opioid use relative to the brain-gut axis. Guidelines for opioid management and alternative pharmacological and nonpharmacological strategies for pain management in patients with gastrointestinal disorders are also discussed. As chronic pain is complex and involves emotional and social factors, a multimodal approach targeting both pain intensity and quality of life is best.