•Alleviated anxiety and depression-like behaviors•Affected the gut microbiota composition•Normalized BDNF/TrkB-related genes in different brain regions•↑5-HT in serum and hippocampus•Affected the HPA axis. The gene discussed is BDNF; the disease is major depressive disorder.