The psychological stress of diabetic patients can induce P2X7–NLRP3 inflammasome activation, thus triggering depression. Here, P2RX7 is linked to depressive disorder.