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. This evidence concerns the gene P2RY12 and depressive symptom measurement.