We found that IBD mice presented visceral pain and depression associated with increased P2Y12 expression in the mPFC. Here, P2RY12 is linked to irritable bowel syndrome.