The gut microbiota and IL-17 in T2DM mice with experimental periodontitis are related to their glucose metabolism. Here, IL17A is linked to type 2 diabetes mellitus.