Even though Stellaria dichotoma L. var. lanceolate (S. dichotoma) is a well-known medicinal plant in the family Caryophyllaceae, its oligosaccharides remain unexplored in terms of their potential as bioactive agents. Here, we isolated a mixture of oligosaccharides from S. dichotoma (Yield: 12 % w/w), that are primarily non-classical raffinose family oligosaccharides (RFOs). Nine major oligosaccharides were purified and identified from the mixture, including sucrose, raffinose, 1-planteose, lychnose, stellariose, along with four new non-classical RFOs. Two of the four new oligosaccharides are linear hexose pentamers with α-galactosyl extensions on their lychnose moieties, and the other two are branched hexose hexamers with α-galactosyl extensions on their stellariose groups. Their interactions with galectin-3 (Gal-3) revealed significant binding, with the terminal galactose providing enhanced affinity for the lectin. Notably, Gal-3 residues Arg144, His158, Asn160, Arg162, Asn174, Trp181, Glu184 and Arg186 coordinate with the lychnose. In vivo studies using the dextran sulfate sodium (DSS) mouse model for colitis demonstrated the ability of these carbohydrates in mitigating ulcerative colitis (UC). Overall, our study has provided structural information and potential applications of S. dichotoma oligosaccharides, also offers new approaches for the development of medicinal oligosaccharides.