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. Here, IL1B is linked to irritable bowel syndrome.