Safflower (Carthamus tinctorius. L) possesses anti-tumor, anti-thrombotic, anti-oxidative, immunoregulatory, and cardio-cerebral protective effects. It is used clinically for the treatment of cardio-cerebrovascular disease in China. This study aimed to investigate the effects and mechanisms of action of safflower extract on myocardial ischemia-reperfusion (MIR) injury in a left anterior descending (LAD)-ligated model based on integrative pharmacology study and ultra-performance liquid chromatography-quadrupole time-of-flight-tandem mass spectrometer (UPLC-QTOF-MS/MS). Safflower (62.5, 125, 250 mg/kg) was administered immediately before reperfusion. Triphenyl tetrazolium chloride (TTC)/Evans blue, echocardiography, terminal deoxynucleotidyl transferase-mediated dUTP nick-end labeling (TUNEL) assay, lactate dehydrogenase (LDH) ability, and superoxide dismutase (SOD) levels were determined after 24 h of reperfusion. Chemical components were obtained using UPLC-QTOF-MS/MS. Gene ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) analyses were performed. Quantitative real-time polymerase chain reaction (qRT-PCR) and Western blotting were used to analyze mRNA and protein levels, respectively. Safflower dose-dependently reduced myocardial infarct size, improved cardiac function, decreased LDH levels, and increased SOD levels in C57/BL6 mice. A total of 11 key components and 31 hub targets were filtered based on the network analysis. Comprehensive analysis indicated that safflower alleviated inflammatory effects by downregulating the expression of NFκB1, IL-6, IL-1β, IL-18, TNFα, and MCP-1 and upregulating NFκBia, and markedly increased the expression of phosphorylated PI3K, AKT, PKC, and ERK/2, HIF1α, VEGFA, and BCL2, and decreased the level of BAX and phosphorylated p65. Safflower shows a significant cardioprotective effect by activating multiple inflammation-related signaling pathways, including the NFκB, HIF-1α, MAPK, TNF, and PI3K/AKT signaling pathways. These findings provide valuable insights into the clinical applications of safflower.