Through GO and KEGG analysis of weighted gene co-expression network analysis (WGCNA) modular genes and DEGs intersection, we found that the co-morbidity between T2DM and UC is primarily associated with immune-inflammatory pathways, including IL-17, TNF, chemokine, and toll-like receptor signaling pathways. Here, IL17A is linked to type 2 diabetes mellitus.