This study employed network pharmacology to investigate the effect of Guizhi Gancao Decoction(GGD) on myocardial ischemia-reperfusion injury(MI/RI) in rats and decipher the underlying mechanism. Firstly, the chemical components and targets of GGD against MI/RI were searched against the Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform(TCMSP), SwissTargetPrediction, and available articles. STRING and Cytoscape 3.7.2 were used to establish the protein-protein interaction(PPI) network for the common targets, and then Gene Ontology(GO) and Kyoto Encyclopedia of Genes and Genomes(KEGG) pathway enrichment analyses were carried out for the core targets. The "drug-active component-target-pathway" network was built. Furthermore, molecular docking between key active components and targets was conducted in AutoDock Vina. Finally, the rat model of MI/RI was established, and the myocardial infarction area was measured. Hematoxylin-eosin(HE) staining and transmission electron microscopy(TEM) were employed to detect cardiomyocyte pathology and ultrastructural changes. Western blot was employed to determine the expression of related proteins in the myocardial tissue. A total of 75 chemical components of GGD were screened out, corresponding to 318 targets. The PPI network revealed 46 core targets such as tumor protein p53(TP53), serine/threonine kinase 1(AKT1), signal transducer and activator of transcription 3(STAT3), non-receptor tyrosine kinase(SRC), mitogen-activated protein kinase 1(MAPK1), MAPK3, and tumor necrosis factor(TNF). According to GO and KEGG enrichment analyses, the core targets mainly affected the cell proliferation and migration, signal transduction, apoptosis, and transcription, involving advanced glycation end products-receptor(AGE-RAGE), MAPK and other signaling pathways in cancers and diabetes complications. The molecular docking results showed that the core components of GGD, such as licochalcone A,(+)-catechin, and cinnamaldehyde, had strong binding activities with the core target proteins, such as MAPK1 and MAPK3. The results of animal experiments showed that compared with the model group, GGD significantly increase superoxide dismutase, decreased malondialdehyde, lactate dehydrogenase, and creatine kinase-MB, and reduced the area of myocardial infarction. HE staining and TEM results showed that GGD pretreatment restored the structure of cardiomyocytes and alleviated the pathological changes and ultrastructural damage of mitochondria in the model group. In addition, GGD significantly down-regulated the phosphorylation of c-Jun N-terminal kinase and p38 and up-regulate that of extracellular regulated kinases 1/2 in the myocardial tissue. The results suggested that GGD may exert the anti-MI/RI effect by regulating the MAPK signaling pathway via the synergistic effects of Cinnamomi Ramulus and Glycyrrhizae Radix et Rhizoma.