In this study, T1DM-related genes were identified using WGCNA, and three hub genes (KIF21A, PIGH, and RPS6KA2) were selected through feature selection in machine learning models that intersected with ccRCC prognostic DEGs; we also explored their role and potential mechanism in the development of ccRCC. This evidence concerns the gene KIF21A and type 1 diabetes mellitus.