There are no specific clinical medications that target cardiac fibrosis in heart failure (HF). Recent studies have shown that tyrosine kinase inhibitors (TKIs) may benefit fibrosis in various organs. However, there is limited research on their application in cardiac fibrosis. Axitinib, an FDA-approved tyrosine kinase inhibitor, was used to evaluate its effects on cardiac fibrosis and function in pressure overload-induced heart failure. To build a pharmacological network, the pharmacological targets of axitinib were first retrieved from databases and coupled with key heart failure gene molecules for analysis and prediction. To validate the results outlined above, 8-week-old male C57BL/6 J mice were orally administrated of axitinib (30 mg/kg) daily for 8 weeks after Transverse Aortic Constriction (TAC) surgery. Mouse cardiomyocytes and cardiac fibroblasts were used as cell lines to test the function and mechanism of axitinib. We found that the pharmacological targets of axitinib could form a pharmacological network with key genes involved in heart failure. The VEGFA-KDR pathway was found to be closely related to the differential gene expression of human heart-derived primary cardiomyocyte cell lines treated with axitinib, based on analysis of the publicly available dataset. The outcomes of animal experiments demonstrated that axitinib therapy greatly reduced cardiac fibrosis and improved TAC-induced cardiac dysfunction. Further research has shown that the expression of transforming growth factor-β(TGF-β) and other fibrosis genes was significantly reduced in vivo and in vitro. Our study provides evidence for the repurposing of axitinib to combat cardiac fibrosis, and offers new insights into the treatment of patients with HF.