Mechanistically, we revealed that the detrimental effects of depression were mediated by intestinal barrier dysfunction and NLRP3 overactivation. Here, NLRP3 is linked to major depressive disorder.