Xuebijing (XBJ) can alleviate the inflammatory response, improve organ function, and shorten the intensive care unit (ICU) stay in patients with pyogenic liver abscess (PLA) complicated with sepsis, but the molecular mechanisms have not been elucidated. This study aimed to explore the molecular mechanism of XBJ in treating PLA complicated with sepsis using a network pharmacology approach. The active ingredients and targets of XBJ were retrieved from the ETCM database. Potential targets related to PLA and sepsis were retrieved from the GeneCards, PharmGKB, DisGeNet, Online Mendelian Inheritance in Man (OMIM), Therapeutic Targets Database (TTD), and DrugBank databases. The targets of PLA complicated with sepsis were mapped to the targets of XBJ to identify potential treatment targets. Protein-protein interaction networks were analyzed using the STRING database. Potential treatment targets were imported into the Metascape platform for Gene Ontology (GO) functional enrichment and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analyses. Molecular docking was performed to validate the interactions between active ingredients and core targets. XBJ was found to have 54 potential treatment targets for PLA complicated with sepsis. Interleukin-1β (IL-1β), interleukin-6 (IL-6), and tumor necrosis factor (TNF) were identified as core targets. KEGG enrichment analysis revealed important pathways, including the interleukin-17 (IL-17) signaling pathway, the TNF signaling pathway, the nuclear factor-kappa B (NF-κB) signaling pathway, and the Toll-like receptor (TLR) signaling pathway. Molecular docking experiments indicated stable binding between XBJ active ingredients and core targets. XBJ may exert therapeutic effects on PLA complicated with sepsis by modulating signaling pathways, such as the IL-17, TNF, NF-κB, and TLR pathways, and targeting IL-1β, IL-6, and TNF.