Scientific understanding of social pain-the hurt feelings resulting from social rejection, separation, or loss-has been facilitated by the hypothesis that such feelings arise, in part, from some of the same neural and neurochemical systems that generate the unpleasant feelings resulting from physical pain. Accordingly, in animals, the painkiller morphine not only alleviates the distress of physical pain, but also the distress of social separation. Because morphine acts on the -opioid receptor, we examined whether variation in the -opioid receptor gene (OPRM1), as measured by the functional A118G polymorphism, was associated with individual differences in rejection sensitivity. Participants (n ؍ 122) completed a self-report inventory of dispositional sensitivity to social rejection and a subsample (n ؍ 31) completed a functional MRI session in which they were rejected from an online ball-tossing game played with two supposed others. The A118G polymorphism was associated with dispositional sensitivity to rejection in the entire sample and in the fMRI subsample. Consistent with these results, G allele carriers showed greater reactivity to social rejection in neural regions previously shown to be involved in processing social pain as well as the unpleasantness of physical pain, particularly the dorsal anterior cingulate cortex (dACC) and anterior insula. Furthermore, dACC activity mediated the relationship between the A118G polymorphism and dispositional sensitivity to rejection, suggesting that this is a critical site for -opioid-related influence on social pain. Taken together, these data suggest that the A118G polymorphism specifically, and the -opioid receptor more generally, are involved in social pain in addition to physical pain.anterior cingulate ͉ brain ͉ exclusion ͉ genetic ͉ social pain