In this work, a promising flavonoid scaffold was found as a potential effective PTP1B inhibitor for the treatment of DM. Here, PTPN1 is linked to diabetes mellitus.