Concerning T2DM-related factors, only BMI, HbA1c and the use of metformin, sulfonylurea derivatives and DPP4 inhibitors correlated negatively with magnesium concentrations. Here, DPP4 is linked to type 2 diabetes mellitus.