Under the condition of T2DM, root canal microbial metabolism was predominantly enriched towards functions of the phosphotransferase system, ABC system, amino acid metabolism, and carbohydrate metabolism. The gene discussed is ABCB6; the disease is type 2 diabetes mellitus.