Poor medication adherence is one of the leading causes of suboptimal glycaemic control in approximately half of the patients with type 2 diabetes mellitus (T2DM). Long-acting antidiabetic drugs are clinically needed for improving patients' compliance. Dipeptidyl peptidase-4 (DPP-4) inhibitors play an increasingly important role in the treatment of T2DM because of their favorable properties of weight neutrality and hypoglycemia avoidance. Herein, we report the successful discovery and scale-up synthesis of compound 5, a structurally novel, potent, and long-acting DPP-4 inhibitor for the once-weekly treatment of T2DM. Inhibitor 5 has fast-associating and slow-dissociating binding kinetics profiles as well as slow clearance rate and long terminal half-life pharmacokinetic properties. A single-dose oral administration of 5 (3 mg/kg) inhibited >80% of DPP-4 activity for more than 7 days in diabetic mice. The long-term antidiabetic efficacies of 5 (10 mg/kg, qw) were better than those of the once-weekly trelagliptin and omarigliptin, especially in decreasing the hemoglobin A1c level.