These results demonstrated that melatonin could alleviate CRS-induced hippocampal microglia pyroptosis by inhibiting Cathepsin B/NLRP3 signaling pathway, thereby improving depression-like behaviors in rats. This evidence concerns the gene CTSB and major depressive disorder.