There were ten genes, SLC30A8, TCF7L2, HHEX, CDKAL1, JAZF1, KCNQ1, ADCY5, PPARG, DGKB, and HNF1B were identified as the hub genes between T2DM and IBD, including UC. Here, TCF7L2 is linked to type 2 diabetes mellitus.