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. Here, IL17A is linked to periodontitis.