Cells in injured and inflamed tissues produce a number of proalgesic lipid-derived mediators, which excite nociceptive neurons by activating selective G-protein-coupled receptors or ligand-gated ion channels. Recent work has shown that these proalgesic factors are counteracted by a distinct group of lipid molecules that lower nociceptor excitability and attenuate nociception in peripheral tissues. Analgesic lipid mediators include endogenous agonists of cannabinoid receptors (endocannabinoids), lipid-amide agonists of peroxisome proliferator-activated receptor-α, and products of oxidative metabolism of polyunsaturated fatty acids via cytochrome P450 and other enzyme pathways. Evidence indicates that these lipid messengers are produced and act at different stages of inflammation and the response to tissue injury, and may be part of a peripheral gating mechanism that regulates the access of nociceptive information to the spinal cord and the brain. Growing knowledge about this peripheral control system may be used to discover safer medicines for pain.