The μ-opioid receptor (MOR) system, well known for dampening physical pain, is also hypothesized to dampen 'social pain.' We used positron emission tomography scanning with the selective MOR radioligand [(11)C]carfentanil to test the hypothesis that MOR system activation (reflecting endogenous opioid release) in response to social rejection and acceptance is altered in medication-free patients diagnosed with current major depressive disorder (MDD, n=17) compared with healthy controls (HCs, n=18). During rejection, MDD patients showed reduced endogenous opioid release in brain regions regulating stress, mood and motivation, and slower emotional recovery compared with HCs. During acceptance, only HCs showed increased social motivation, which was positively correlated with endogenous opioid release in the nucleus accumbens, a reward structure. Altered endogenous opioid activity in MDD may hinder emotional recovery from negative social interactions and decrease pleasure derived from positive interactions. Both effects may reinforce depression, trigger relapse and contribute to poor treatment outcomes.