Background:Some studies have found that hypomagnesemia is associated with vascular calcification, atherosclerosis, and cardiovascular disease, which may lead to increased mortality in patients with chronic kidney disease (CKD) and end-stage renal disease (ESRD) who need to maintain hemodialysis (HD). However, the conclusion of these studies remain controversial.Methods:Relevant literature was retrieved from the database of Cochrane library, PubMed, EMBASE, and CNKI until December 2020, without any language restrictions. The data was analyzed using the Stata 12.0 software.Results:A total of 31 studies were included, involving 205436 participants. The results showed that after multivariable adjusted, hypomagnesemia was significant associated with the risk of all-cause mortality in patients with CKD and end-stage renal disease (ESRD) (hazard ratios [HR] 1.955; 95% confidence interval (95% CI) 1.511-2.528; P = .000; hypomagnesemia vs normal magnesium or hypermagnesemia). In contrast, in patients with CKD and ESRD, hypermagnesemia was negatively correlated with all-cause mortality (HR 0.873; 95% CI 0.793-0.960; P = .005) (per unit increase). Moreover, in the adjusted model, it was observed that hypermagnesemia was significantly associated with a reduced risk of cardiovascular death (HR 0.598; 95% CI 0.094-1.102, P = .020). In addition, subgroup analysis found that hypomagnesemia was closely related to the increase of all-cause mortality in HD patients (HR 1.799; 95% CI 1.375-2.354; P = .000) (hypomagnesemia vs normal magnesium or hypermagnesemia).Conclusion:Our results show that hypomagnesemia is significantly associated with cardiovascular and all-cause mortality in maintenance HD patients. Further studies should be conducted to evaluate the benefits of magnesium correction in maintenance dialysis patients with hypomagnesemia.