Type 2 diabetes mellitus (T2DM) is a complex and prevalent metabolic disorder, and dipeptidyl peptidase 4 (DPP4) inhibitors have proven effective, yet the identification of novel inhibitors remains challenging due to the vastness of chemical space. Here, DPP4 is linked to diabetes mellitus.