In this study, PTPN6 and PTPN9 were confirmed as viable targets for the treatment of T2DM through the identification of the inhibitory effects of QG on their enzymatic activity. Here, PTPN6 is linked to type 2 diabetes mellitus.