Here, we investigated how bacterial DPP4, which is prevalent in patients with T2D, impairs gut hormone function and evades the catalytic inhibition of drug therapies for T2D. Here, DPP4 is linked to type 2 diabetes mellitus.