Background To explore the mechanism of Maxing Shigan Decoction in the treatment of myocardial injury and lung MESHD injury through network pharmacology and molecular docking technology.Methods In Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform (TCMSP), a Bioinformatics Analysis Tool for Molecular mechANism of Traditional Chinese Medicine (BATMAN-TCM) and the Comparative Toxicogenomics Database, National Center for Biotechnology Information database, Online Mendelian Inheritance in Man database, the compounds and targets of each drug in Maxing Shigan Decoction and the targets of “acute lung intervention” and “myocardial injury” diseases MESHD were searched. Gene Ontology (GO) enrichment analysis and Kyoto Encyclopedia of Genes and Genomes (KEGG) enrichment analysis were performed by the DAVID database. GOLD 5.1 was used for molecular docking.Results Maxing Shigan Decoction includes 327 compounds and 2722 targets, including 30 key targets. 2125 items were obtained by GO enrichment analysis, including 2047 items of Biological Process, 28 items of Cell Composition and 50 items of Molecular Function. The KEGG pathway was enriched to obtain 149 pathways. The results of molecular docking showed that Gancaonin H and Licorice Glycoside E were well combined with Angiotensin-Converting Enzyme 2-A (ACE2-A) and Angiotensin-Converting Enzyme 2-B (ACE2-B), respectively, and Licorice was well combined with Granulocyte-Macrophage Colony Stimulating Factor (GM-CSF) and Interleukin 6 (IL-6). Supraene is an active compound of Ephedra. It has good binding with ACE2-A, ACE2-B, GM-CSF and IL-6, respectively. (6Z, 10E, 14E, 18E)-2, 6, 10, 15, 19, 23- hexamethyletracosa-2, 6, 10, 14, 18, 22- hexaene are the active compounds of Almond, which are well combined with ACE2-A, ACE2-B, GM-CSF and IL-6.Conclusion Maxing Shigan Decoction may act on ACE2, GM-CSF and IL-6 targets through the active compounds Supraene of Ephedra, and Almond (6Z, 10E, 14E, 18E)-2, 6, 10, 15, 19, 23-hexamethyletracosa-2, 6, 10, 14, 18, 22-hexaene. Gancainin H and licorice Glycide E are the active compounds of Licorice, act on A and B sites of ACE2 respectively, and Glycyrin acts on GM-CSF and IL-6 targets, coordinating multiple signal pathways to play anti-inflammatory and antiviral roles to prevent and treat lung and heart injury MESHD caused by Severe Acute Respiratory Syndrome MESHD Coronavirus 2 (SARS-CoV-2).