The herbal pairing of Huangqi and Dangshen (HD) is traditional Chinese herbal medicine and has been widely used in China, especially to treat myasthenia gravis (MG). However, the mechanism of HD on MG is unclear. Aim of the Study. This study aims to investigate HD’s possible role in MG treatment. Materials and Methods. The TCMSP database was used to identify the active chemicals and their targets. The GeneCards, DisGeNET, and OMIM databases were used to search for MG-related targets. The STRING database was employed in order to identify the common PPI network targets. We next utilised Cytoscape 3.8.2 for target identification and the DAVID database for gene ontology (GO) function analysis as well as Encyclopaedia of Genomes (KEGG) pathway enrichment analysis on the selected targets. The AutoDock Vina software was used to test the affinity of essential components with the hub gene before concluding that the primary targets were corrected through molecular docking. Results. 41 active compounds were screened from HD, and the number of putative-identified target genes screened from HD was 112. There were 21 target genes that overlapped with the targets of MG, which were postulated to be potential treatment targets. Through further analysis, the results showed that the active compounds from HD (such as 7-methoxy-2-methylisoflavone, quercetin, luteolin, Kaempferol, and isorhamnetin) may achieve the purpose of treating MG by acting on some core targets and related pathways (such as EGFR, FOS, ESR2, MYC, ESR1, CASP3, and IL-6). Molecular docking findings demonstrated that these active molecules have a near-perfect ability to attach to the primary targets. Conclusion. Through network pharmacology, the findings in this study provide light on the coordinated action of several HD formula components, targets, and pathways. It provided a theoretical basis for further study of HD pharmacological action.