We found potential genetic biomarkers for MCI in patients with type 2 diabetes using WGCNA combined with the LASSO algorithm and further screened four genes, COX7C, SNRPG, TOMM7, and RPS24, which are associated with the occurrence of type 2 diabetes. The gene discussed is SNRPG; the disease is type 2 diabetes mellitus.