Multivariate-logistic regression revealed that diabetes duration, HbA1c, PT, aPTT, PAI-1, and urinary microalbumin were independently associated with serum magnesium among children and adolescents with T1DM (p<0.05). The gene discussed is SERPINE1; the disease is type 1 diabetes mellitus.