Pristimerin is a pentacyclic triterpenoid mainly derived from Celastraceae plants such as Maytenus ilicifolia, which has been traditionally used for the treatment of gastrointestinal disorders. Pharmacological studies have shown that pristimerin exhibited anti-inflammatory, antioxidant, anticancer and antibacterial activities. However, the potential mechanism of pristimerin for the treatment of ulcerative colitis (UC) remains elusive. In the present study, pristimerin could effectively inhibit the NO generation induced by LPS in RAW 264.7 cells and upregulate the decreased expression of tight junction proteins such as occludin and claudin-1. In vivo, oral administration of pristimerin (0.5 mg/kg and 1 mg/kg) could significantly relieve UC symptoms such as body weight loss, disease activity index, shortened colon length and colonic pathological damage. Meanwhile, pristimerin decreased the TNF-α, MPO and MDA levels and increased the levels of IL-10, IL-22, SOD activity, occludin and claudin-1 in colon tissues. Gut microbiota analysis of cecum contents revealed that pristimerin treatment effectively alleviated gut microbiota dysbiosis. Additionally, serum metabolomics showed that 33 potential biomarkers involving lipid and tryptophan metabolism were identified, which may account for the therapeutic effects of pristimerin on UC mice. In conclusion, our findings indicate that pristimerin attenuates UC symptoms in DSS-induced mice through modulating intestinal barrier integrity, gut microbiota composition, lipid and tryptophan metabolism.