Opioid receptors in the gastrointestinal (GI) tract mediate the effects of endogenous opioid peptides and exogenously administered opioid analgesics, on a variety of physiological functions associated with motility, secretion and visceral pain. The studies reviewed or reported here describe a range of in vivo activities of opioid receptor antagonists upon GI function in rodents, focusing on µ receptors. Naloxone, and the peripherally acting µ-opioid receptor antagonists alvimopan and methylnaltrexone, reverse morphine-induced inhibition of GI transit in mice and rats, and morphine- or loperamide-induced inhibition of castor oil-induced diarrhoea in mice. At doses producing maximal reversal of morphine-induced effects upon GI transit, only the central nervous system (CNS) penetrant antagonist naloxone was able to reverse morphine-induced analgesia. Both central and peripheral opioid antagonists may affect GI function and/or visceromotor sensitivity in the absence of exogenous opioid analgesics, suggesting a constitutive role for endogenous opioid peptides in the control of GI physiology. Furthermore, in contrast to naloxone, alvimopan does not produce hypersensitivity to the visceromotor response induced by nociceptive levels of colorectal distension in a rodent model of postinflammatory colonic hypersensitivity, suggesting that in the periphery endogenous μ-opioid receptor-mediated mechanisms do not regulate colonic sensitivity. The data support the hypothesis that peripherally acting opioid antagonists may be able to selectively block opioid receptors in the GI tract, thereby preserving normal GI physiology, while not blocking the effects of endogenous opioid peptides or exogenous opioid analgesics in the CNS. These findings suggest that the primary sites of action of µ-opioid agonists with respect to inhibition of GI function are in the periphery, whereas analgesic activity resides primarily in the CNS.