The regression analysis adjusted for multiple covariates (including age, gender, MMSE, albumin, phosphorus, renal function, and thiazide diuretic treatment) demonstrated that hypomagnesemia was independently associated with an increased risk of delirium. This evidence concerns the gene ALB and familial primary hypomagnesemia.