This study aimed to investigate the anti-inflammatory effect of astragaloside Ⅳ in mice with ulcerative colitis(UC) and its effect on the percentage of peripheral blood T helper(Th17) cells. Following the establishment of UC mouse model with 2% sodium dextran sulfate(DSS), mice in the positive control group and low-and high-dose astragaloside Ⅳ groups were treated with corresponding drugs by gavage. Disease activity index(DAI) was calculated, and serum interleukin-17(IL-17), tumor necrosis factor-α(TNF-α), and transforming growth factor-β(TGF-β) levels were assayed by ELISA. The pathological changes in colon tissue were observed by HE staining, and Th17/regulatory T cells(Treg) ratio in the peripheral blood was determined by flow cytometry. Western blot was conducted for detecting the relative protein expression levels of forkhead box protein P3(Foxp3) and retinoic acid-related orphan nuclear receptor γT(ROR-γt). The findings demonstrated that in normal mice, the colonic structure was intact. The goblet cells were not reduced and the glands were neatly arranged, with no mucosal erosion, bleeding, or positive cell infiltration. In the model group, the colonic mucosal structure was seriously damaged, manifested as disordered arrangement or missing of glands, vascular dilatation, congestion, and massive inflammatory cell infiltration. The pathological injury of colon tissue was alleviated to varying degrees in drug treatment groups. Compared with the normal group, the model group exhibited elevated percentage of Th17 cells, increased IL-17 and TNF-α content, up-regulated relative ROR-γt protein expression, lowered TGF-β, reduced percentage of Treg cells, and down-regulated relative Foxp3 protein expression. The comparison with the model group showed that DAI score, pathological score, percentage of Th17 cells, IL-17 and TNF-α content, and relative ROR-γt protein expression in the positive control group, low-dose astragaloside Ⅳ group, and high-dose astragaloside Ⅳ group were decreased, while TGF-β content, percentage of Treg cells, and relative Foxp3 protein expression were increased. The DAI score, pathological score, percentage of Th17 cells, IL-17 and TNF-α content, and relative ROR-γt protein expression in the low-dose astragaloside Ⅳ group were higher than those in the positive control group, whereas the content of TGF-β, percentage of Treg cells, and relative Foxp3 protein expression were lower. DAI score, pathological score, percentage of Th17 cells, IL-17 and TNF-α content, relative ROR-γt protein expression in the high-dose astragaloside Ⅳ group declined in contrast to those in the low-dose astragaloside Ⅳ group, while the TGF-β content, percentage of Treg cells, and relative Foxp3 protein expression rose. There was no significant difference between the positive control group and the high-dose astragaloside Ⅳ group. Astragaloside Ⅳ is able to inhibit inflammatory response and diminish the percentage of Th17 cells in mice with UC.