The network pharmacology and molecular docking results showed that Danshenol A, isorhamnetin, Ginsenoside-Rh4, quercetin, and kaempferol might be the main active compounds in the treatment of IPF by YTG, whereas MAPK1, MAPK3, EGFR, and SRC are the core targets while PI3K/AKT pathway and MAPK pathway are the main signaling pathways through which YTG regulates relevant biological processes to intervene in IPF. This evidence concerns the gene MAPK1 and idiopathic pulmonary fibrosis.