Introduction: Myocardial infarction (MI), the most prevalent ischemic heart disease, constitutes a primary cause of global cardiovascular disease with incidence and mortality. The pathogenesis of MI is exceedingly intricate, with PANoptosis playing a pivotal role in its pathological process. Xian Ling Gu Bao capsule (XLGB) contains various active components, including flavonoids, terpenes, and phenylpropanoids, and exhibits a wide range of pharmacological activities. However, it remains unclear whether XLGB can protect the myocardium from damage after MI. This study aimed to investigate the impact of XLGB on isoprenaline (ISO)-induced MI in mice and its potential mechanisms.Methods: This study assessed the protective effects of XLGB against ISO-induced MI through techniques such as echocardiography, HE staining, Masson staining, and enzyme-linked immunosorbent assay (ELISA). Furthermore, the potential mechanisms of XLGB's protective effects on MI were explored using bioinformatics, molecular docking, and molecular dynamics simulations. These mechanisms were further validated through immunofluorescence staining and Western blotting.Results: The results demonstrated that various doses of XLGB exhibited a significant reduction in myocardial injury induced by myocardial infarction. Intriguingly, higher dosages of XLGB displayed superior therapeutic efficacy compared to the positive control metoprolol. This protective effect is primarily achieved through the inhibition of oxidative stress and the inflammatory processes. Furthermore, we have elucidated that XLGB protected the myocardium from MI-induced damage by suppressing PANoptosis, with a critical role played by the NLRP3/Caspase3/RIP1 signaling pathway. Of particular note, the primary compounds of XLGB were found to directly interact with NLRP3/Caspase3/RIP1, a discovery further validated through molecular docking and molecular dynamics simulations. This suggests that NLRP3/Caspase3/RIP1 may be a therapeutic target for XLGB-induced myocardial protection.Conclusion: In summary, our findings reveal a novel property of XLGB: reverses myocardial damage following MI by inhibiting the NLRP3/Caspase3/RIP1-mediated PANoptosis pathway.