This study is the first to investigate the correlation between the composition of the gut microbiota, serum IL-17 levels, and glucose metabolism in mice with both periodontitis and T2DM. This evidence concerns the gene IL17A and type 2 diabetes mellitus.