We finally obtained 20 key compounds and identified 214 potential targets active against T2DM, among which AKT1, TNF, SRC, VEGFA, EGFR, CASP3, MAPK3, STAT3, PPARG, ESR1, MTOR, PTGS2, and MAPK1 were the key targets. Here, PPARG is linked to type 2 diabetes mellitus.