Besides confirming the role of these three genes in the association between magnesium and diabetes, we also identified new associations between two other magnesium-regulating genes (CNNM2 and FXYD2) and diabetes risk, which were also mediated through serum magnesium levels. Here, FXYD2 is linked to diabetes mellitus.