Objective. This study is aimed to reveal the possible mechanisms of artemisinin in the treatment of ulcerative colitis (UC) through bioinformatics analysis and experimental verification in UC model rats. Methods. Firstly, we searched two microarray data of the Gene Expression Omnibus (GEO) database to explore the differentially expressed genes (DEGs) between UC samples and normal samples. Then, we selected DEGs for gene ontology (GO) function enrichment analysis and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis. The acute UC model of rats was established by using 3.5% dextran sulfate sodium (DSS) for 10 days to verify the core pathway. Finally, we evaluated the therapeutic effect of artemisinin at the molecular level and used metabonomics to study the endogenous metabolites in the rat serum. Results. We screened in the GEO database and selected two eligible microarray datasets, GSE36807 and GSE9452. We performed GO function and KEGG pathway enrichment analyses of DEGs and found that these DEGs were mainly enriched in the inflammatory response, immune response, and IL-17 and NF-κB signaling pathways. Finally, we verified the IL-17 signaling pathway and key cytokines, and ELISA and immunohistochemical results showed that artemisinin could downregulate the expression of proinflammatory cytokines such as IL-1β and IL-17 in the IL-17 signaling pathway and upregulate the expression of the anti-inflammatory cytokine PPAR-γ. Metabolomics analysis showed that 33 differential metabolites were identified in the artemisinin group (AG) compared to the model group (MG). Differential metabolites were mainly involved in alanine, aspartate, and glutamate metabolism and synthesis and degradation of ketone bodies. Conclusion. In this study, we found that artemisinin can significantly inhibit the inflammatory response in UC rats and regulate metabolites and related metabolic pathways. This study provides a foundation for further research on the mechanism of artemisinin in the treatment of UC.