In conclusion, our research confirmed that matrine can regulate the composition of the gut microbiota and the disturbance of gut metabolites, restore intestinal permeability, reduce peripheral blood circulation and neuroinflammation, and increase the expression of BDNF protein, thereby effectively alleviating depression-like behaviors in CUMS-induced mice. Here, BDNF is linked to depressive symptom measurement.