Genetics seems to be a vital risk factor for Type 2 diabetes, and serum magnesium levels may modify the risk of diabetes through several magnesium-regulating genes such as TRPM6, CLDN19, SLC41A2, CNNM2, and FXYD2 [26]. Here, CNNM2 is linked to type 2 diabetes mellitus.