In vivo experiments have verified that stigmasterol can reduce thermal and cold hyperalgesia in rat chronic compressive nerve injury (CCI) model; stigmasterol can reduce IL‐1β, IL‐6, TNF‐α, CCL2, SP, and PGE2 in serum of CCI rats; immunohistochemistry and western blot confirmed that stigmasterol can reduce the levels of IL‐34/CSF1R signaling pathway and NLRP3 inflammasome in DRG of CCI rats. Here, CCL2 is linked to injury.