Differences in male and female responses to pain are widely recognized in many species, including humans, but the cerebral mechanisms that generate these responses are unknown. Using the formalin test, we confirmed that proestrus female rats showed nociceptive behavior, modulated by estrogen that was distinct from male rats, particularly during the interphase period. We then explored the brain areas, which were involved in the female pattern of nociceptive behavior. We found that, after a formalin injection and at the time corresponding to the behavioral interphase, the number of phosphorylated cAMP response element-binding protein (pCREB)-immunoreactive neurons observed by immunocytochemistry increased in the dorsolateral division of the bed nucleus of the stria terminalis (BSTLD) in female but not male rats. There were no significant sex differences in pCREB expression following formalin in any region other than the BSTLD. The increased pCREB in female rats was eliminated after an ovariectomy and restored with 17β-estradiol treatment. Neither an orchidectomy nor 17β-estradiol treatment affected the pCREB response in male rats. The increase in pCREB expression in the BSTLD in female rats after formalin injection was confirmed with immunoblotting. To determine the role of CREB in the BSTLD, adenovirus-mediated expression of a dominant-negative form of CREB (mCREB) was carried out. The nociceptive behavior during interphase was significantly attenuated by injection of virus carrying mCREB into the BSTLD in female rats but not in male rats. These results suggest a novel role for CREB in the BSTLD as a modulator of the pain response in a female-specific, estrogen-dependent manner.