After ROC analysis, we obtained that ABCD1, C1QC, CSE1L, and PSMC4 had higher classification and prediction effects on OSCC and T2D. This evidence concerns the gene ABCD1 and type 2 diabetes mellitus.