Myocardial infarction (MI) is the primary cause of cardiac mortality. Esculentoside A (EsA), a triterpenoid saponin, has anti-inflammatory and antioxidant activities. However, its effect on MI remains unknown. In this study, the protective effect and mechanisms of EsA against MI were investigated. EsA significantly alleviated hypoxia-induced HL-1 cell injury, including increasing cell viability, inhibiting reactive oxygen species (ROS) production, mitochondrial membrane potential (MMP) and lactate dehydrogenase (LDH) leakage. In mouse MI model by left coronary artery (LAD) ligating, EsA obviously restored serum levels of creatine kinase isoenzymes (CK-MB), cardiac troponin I (cTnI), superoxide dismutase (SOD) and malondialdehyde (MDA). In addition, the cardioprotective effect of EsA was further confirmed by infarct size, electrocardiogram and echocardiography. Mechanistically, the targeted binding relationship between EsA and C-X-C motif chemokine receptor 2 (CXCR2) was predicted by molecular docking and dynamics, and validated by small molecule pull-down and surface plasmon resonance tests. EsA inhibited CXCR2 level both in vitro and in vivo, correspondingly alleviated oxidative stress by suppressing NOX1 and NOX2 and relieved inflammation through inhibiting p65 and p-p65. It demonstrated that EsA could play a cardioprotective role by targeting CXCR2. However, the effect of EsA against MI was abolished in combination with CXCR2 overexpression both in vitro and in vivo. This study revealed that EsA showed excellent cardioprotective activities by targeting CXCR2 to alleviate oxidative stress and inflammation in MI. EsA may function as a novel CXCR2 inhibitor and a potent candidate for the prevention and intervention of MI in the future.