EA inhibited the expression of P2Y12 and IL-1β in the mPFC and weakened the activation of microglia, thus relieving visceral pain and depression in IBD mice. This evidence concerns the gene P2RY12 and depressive disorder.