In this paper, we predicted the mechanism of myrrha in treating diabetes through network pharmacology and predicted that TP53, STAT3, SRC, AKT1, IL6, TNF, and ESR1 might be the potential gene targets of myrrha in treating diabetes. Here, ESR1 is linked to diabetes mellitus.