In this study, we show that inflammatory pain relief which occurs spontaneously a few days after antigen challenge is caused by opioid release by antigen-primed CD4+ T cells at the site of inflammation.