We identify novel functional homologs of human DPP4 in several bacterial species inhabiting the human gut, and specific associations between Parabacteroides and Porphyromonas DPP4-like genes and type 2 diabetes (T2D). Here, DPP4 is linked to type 2 diabetes mellitus.