In summary, we delineated potential co-morbid mechanisms between T2DM and UC, primarily implicating pathways such as IL-17, TNF, chemokine, and Toll-like receptor signaling, alongside the involvement of immune-inflammatory pathways and various immune cells like T cells, B cells, and neutrophils. The gene discussed is TNF; the disease is type 2 diabetes mellitus.