Females were significantly overrepresented in the hypomagnesemia group, while the hypermagnesemia group showed a higher prevalence of hypertension, retinopathy, an increased albumin/creatinine ratio, chronic kidney disease (CKD), elevated creatinine levels, and a lower adjusted calcium concentration. Here, ALB is linked to chronic kidney disease.