By combining transcriptome analysis with network pharmacology analysis, we demonstrated that the therapeutic mechanism of XYS in NASH-related liver fibrosis involves the regulation of STAT3, NFκB, and PPARγ and their downstream genes and the intervention of the ECM, inflammation, and metabolism. The gene discussed is NFKB1; the disease is Hepatic fibrosis.