The endocannabinoid system, consisting of the cannabinoid(1) receptor (CB1R) and cannabinoid(2) receptor (CB2R), endogenous cannabinoid ligands (endocannabinoids), and metabolizing enzymes, is present throughout the pain pathways. Endocannabinoids, phytocannabinoids, and synthetic cannabinoid receptor agonists have antinociceptive effects in animal models of acute, inflammatory, and neuropathic pain. CB1R and CB2R located at peripheral, spinal, or supraspinal sites are important targets mediating these antinociceptive effects. The mechanisms underlying the analgesic effects of cannabinoids likely include inhibition of presynaptic neurotransmitter and neuropeptide release, modulation of postsynaptic neuronal excitability, activation of the descending inhibitory pain pathway, and reductions in neuroinflammatory signaling. Strategies to dissociate the psychoactive effects of cannabinoids from their analgesic effects have focused on peripherally restricted CB1R agonists, CB2R agonists, inhibitors of endocannabinoid catabolism or uptake, and modulation of other non-CB1R/non-CB2R targets of cannabinoids including TRPV1, GPR55, and PPARs. The large body of preclinical evidence in support of cannabinoids as potential analgesic agents is supported by clinical studies demonstrating their efficacy across a variety of pain disorders.