The psychological stress of diabetic patients can induce P2X7–NLRP3 inflammasome activation, thus triggering depression. This evidence concerns the gene NLRP3 and major depressive disorder.