This study explored the effect of Tripterygium glycosides(TG) on ulcerative colitis in rats and examined the regulatory role of the extracellular signal-regulated kinase/p38 mitogen-activated protein kinase(ERK/p38 MAPK) signaling pathway. Seventy male Wistar rats were selected and randomly divided into control, model, low-dose TG, medium-dose TG, high-dose TG, positive control, and pathway inhibitor groups. The disease activity index(DAI) score, macroscopic damage score, and microscopic colonic injury score were observed in each group. HE staining was used to detect pathological changes in colonic tissues. TUNEL assay was employed to detect the apoptosis rate of intestinal mucosal cells. ELISA was used to measure serum levels of interleukin-1β(IL-1β), interleukin-6(IL-6), and tumor necrosis factor-alpha(TNF-α). Western blot and PCR methods were used to detect the expression of ERK/p38 MAPK pathway-related proteins and mRNA in tissues. The results showed that TG could effectively improve the histopathological condition; compared with the control group, DAI score, morphological injury score, colon injury score, apoptosis rate of colonic mucosal cells, serum levels of IL-1β, IL-6 and TNF-α, protein levels of p-ERK/ERK and p-p38 MAPK/p38 MAPK, mRNA levels of ERK and p38 MAPK were significantly elevated and significantly increased in the model group(P<0.05). Compared with the model group, DAI scores of rats in the high dose group of TG, the positive control group and the pathway inhibitor group were reduced, and the pathway inhibitor group was the lowest(P<0.05). Compared with the model group, morphological injury score and colonic injury score were reduced in the remaining groups, and lowest in the pathway inhibitor group(P<0.05). Compared with the model group, the apoptosis rate of rat intestinal mucosa cells was decreased in the high-dose TG, the positive control group, and the pathway inhibitor group, and the levels of IL-1β, IL-6, and TNF-α in serum, and the expression of p-ERK/ERK, p-p38 MAPK/p38 MAPK, ERK mRNA, p38 MAPK mRNA in the colonic tissues was reduced(P<0.05), and the improvement effect of the above indexes in the pathway inhibitor group was most significant. In conclusion, TG can effectively improve inflammatory responses in ulcerative colitis, promote colonic mucosal recovery, and enhance immune function. Its mechanism may be related to the regulation of the ERK/p38 MAPK signaling pathway.