Although endocannabinoids constitute one of the first lines of defense against pain, the anatomical locus and the precise receptor mechanisms underlying cannabinergic modulation of pain are uncertain. Clinical exploitation of the system is severely hindered by the cognitive deficits, memory impairment, motor disturbances and psychotropic effects resulting from the central actions of cannabinoids. We deleted the type 1 cannabinoid receptor (CB1) specifically in nociceptive neurons localized in the peripheral nervous system of mice, preserving its expression in the CNS, and analyzed these genetically modified mice in preclinical models of inflammatory and neuropathic pain. The nociceptor-specific loss of CB1 substantially reduced the analgesia produced by local and systemic, but not intrathecal, delivery of cannabinoids. We conclude that the contribution of CB1-type receptors expressed on the peripheral terminals of nociceptors to cannabinoid-induced analgesia is paramount, which should enable the development of peripherally acting CB1 analgesic agonists without any central side effects.