Furthermore, common genetic variation in magnesium regulating genes TRPM6, CLDN19, SLC41A2, CNNM2 and FXYD2 significantly modify the risk of diabetes through serum magnesium levels. Here, CNNM2 is linked to diabetes mellitus.