Insomnia is an important comorbidity of chronic pain. In this issue of Neuron, Li et al. report that chronic-pain-induced insomnia is mediated by the pyramidal neurons in the anterior cingulate cortex and their dopaminergic projections to the dorsal medial striatum.