Coix lachryma-jobi L. is a traditional Chinese medicinal and edible resource with multiple nutritional values. However, the effect of Coix polysaccharide on depression and its underlying mechanism were still unclear. In this study, a polysaccharide (CSP-A) was isolated from Coix lachryma-jobi L. seeds with molecular weight of 15.625 kDa. The backbone of CSP-A was composed of →4)-α-D-Glcp-(1→,→4)-GlcAp-(1→, and→3)-Galp-(1 → with side chains containing Rhap-(1→, Manp-(1→, and Galp-(1 → which was further identified as a pectin-type acidic heteropolysaccharide with homogalacturonan (HG) and rhamnogalacturonan-I (RG-I) domains. Animal experiments demonstrated that CSP-A significantly ameliorated CRS-induced depressive-like behaviors by remodeling the imbalance of gut microbiota, recovered SCFA levels, and mitigated colonic pathological damage and inflammation induced by CRS treated rats. Moreover, CSP-A notably restored the disturbed metabolic profiles associated with nervous diseases. Based on its structural characteristics, it was supposed that CSP-A may act as prebiotics increasing the activities of beneficial bacteria, enhancing SCFAs production, activating AhR/CYP1A1/BDNF signaling pathway, and ultimately alleviating depressive-like behaviors. This work reported a new type of polysaccharide from Coix lachryma-jobi L. seeds and its antidepressant mechanism, highlighting its potential candidate as a new psychiatric drug.