In summary, this study found that electroacupuncture regulates the IL‐4‐JAK1‐STAT6 signaling pathway, inhibits abnormal microglia activation, promotes their polarization towards the M2 phenotype, alleviates neuroinflammation, and improves depressive‐like behaviors in mice with IBD and comorbid depression. This evidence concerns the gene STAT6 and depressive disorder.