Neuropathic pain remains poorly managed by current therapies, highlighting the need to improve our knowledge of chronic pain mechanisms. In neuropathic pain models, dorsal root ganglia (DRG) nociceptive neurons transfer miR-21 packaged in extracellular vesicles to macrophages that promote a proinflammatory phenotype and contribute to allodynia. Here we show that miR-21 conditional deletion in DRG neurons was coupled with lack of upregulation of chemokine CCL2 after nerve injury and reduced accumulation of CCR2-expressing macrophages, which showed TGF-β–related pathway activation and acquired an M2-like antinociceptive phenotype. Indeed, neuropathic allodynia was attenuated after conditional knockout of miR-21 and restored by TGF-βR inhibitor (SB431542) administration. Since TGF-βR2 and TGF-β1 are known miR-21 targets, we suggest that miR-21 transfer from injured neurons to macrophages maintains a proinflammatory phenotype via suppression of such an antiinflammatory pathway. These data support miR-21 inhibition as a possible approach to maintain polarization of DRG macrophages at an M2-like state and attenuate neuropathic pain.