Although many anecdotal reports indicate that marijuana and its active constituent, delta-9-tetrahydrocannabinol (delta-9-THC), may reduce pain sensation, studies of humans have produced inconsistent results. In animal studies, the apparent pain-suppressing effects of delta-9-THC and other cannabinoid drugs are confounded by motor deficits. Here we show that a brainstem circuit that contributes to the pain-suppressing effects of morphine is also required for the analgesic effects of cannabinoids. Inactivation of the rostral ventromedial medulla (RVM) prevents the analgesia but not the motor deficits produced by systemically administered cannabinoids. Furthermore, cannabinoids produce analgesia by modulating RVM neuronal activity in a manner similar to, but pharmacologically dissociable from, that of morphine. We also show that endogenous cannabinoids tonically regulate pain thresholds in part through the modulation of RVM neuronal activity. These results show that analgesia produced by cannabinoids and opioids involves similar brainstem circuitry and that cannabinoids are indeed centrally acting analgesics with a new mechanism of action.