General anaesthetics (GAs) have analgesic effects that are distinct from their loss-of-consciousness effects, but their mechanisms are unclear. Here, in vivo calcium imaging revealed a population of GABAergic neurons in the mouse central amygdala activated by GAs. Optogenetic activation of these neurons produced analgesic-like effects in naive mice and in acute and chronic neuropathic pain models; optogenetic inhibition produced opposite effects. Targeting these neurons might have potential in treating chronic pain.