In summary, our research has identified MEDAG as a novel hub candidate gene expressed in the pancreas islet in the pathogenesis of T2DM using WGCNA. This evidence concerns the gene MEDAG and type 2 diabetes mellitus.