Inhibiting the expression of P2Y12 in the mPFC alleviated visceral pain and depression in IBD mice, weakened the activation of microglia, and reduced the expression of IL-1β in the mPFC. Here, IL1B is linked to depressive symptom measurement.