This study indicated that quercetin, kaempferol, and beta-sitosterol in the active ingredients of YFSJF could regulate PI3K/AKT signaling pathway, HIF-1 signaling pathway, TNF signaling pathway, IL-17 signaling pathway, T cell receptor signaling pathway, calcium signaling pathway, and Th17 cell differentiation, then alleviate inflammatory response, enhance immunity, inhibit fibroblast proliferation and promote apoptosis, reduce collagen deposition, and eventually alleviate pulmonary fibrosis. Here, TNF is linked to pulmonary fibrosis.