Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Pharmacol., 20 October 2025

Sec. Gastrointestinal and Hepatic Pharmacology

Volume 16 - 2025 | https://doi.org/10.3389/fphar.2025.1551495

This article is part of the Research TopicReviews in Gastrointestinal and Hepatic Pharmacology: 2024View all 15 articles

The use of magnesium sulfate can reduce the mortality risk of cirrhosis patients: a retrospective cohort study

Boxian Chen&#x;Boxian Chen1Yuping Yang&#x;Yuping Yang1Mouji Liang&#x;Mouji Liang1Yanqi KouYanqi Kou1Ruyin YeRuyin Ye1Liping ZhanLiping Zhan1Yujie HuangYujie Huang1Qing ZhangQing Zhang1Haoyuan HuangHaoyuan Huang1Jieming ZhengJieming Zheng1Zhe Huang
Zhe Huang2*Shicai Ye
Shicai Ye1*
  • 1Department of Gastroenterology, Affiliated Hospital of Guangdong Medical University, Guangdong Medical University, Zhanjiang, Guangdong, China
  • 2Department of Colorectal Surgery, Affiliated Hospital of Guangdong Medical University, Guangdong Medical University, Zhanjiang, Guangdong, China

Background: Magnesium deficiency is common in patients with cirrhosis, but there is a lack of real-world evidence to support the effect of magnesium supplementation on prognosis.

Objective: To explore whether magnesium sulfate supplementation is beneficial for patients with cirrhosis using data from the MIMIC-IV database.

Methods: Patients with cirrhosis were divided into magnesium sulfate group and non-magnesium sulfate group according to medication use during hospitalization after admission to the intensive care unit (ICU). In-hospital all-cause mortality was the primary outcome, and 180-day all-cause mortality was the secondary outcome. Propensity score matching (PSM) method, univariate and multivariate regression analysis were used to evaluate the effect of magnesium sulfate on prognosis, and Kaplan-Meier curves, subgroup analysis and sensitivity analysis were performed to clarify the stability of the results.

Results: The prematched cohort included 3,312 patients, while the propensity score matched cohort included 1,308 patients. In the PSM analysis, the in-hospital all-cause mortality in the magnesium sulfate group was 22.0% (144/654), and that in the non-use group was 31.0% (203/654). Magnesium sulfate use was associated with lower in-hospital mortality (odds ratio [OR], 0.47; 95% confidence interval [CI], 0.33–0.69; P < 0.001) and reduced all-cause mortality at 180 days after ICU admission (hazard ratio [HR], 0.61; 95% CI, 0.51–0.72; P < 0.001). Sensitivity analyses confirmed the robustness of these results.

Conclusion: Magnesium sulfate use is associated with reduced in-hospital and 180-day all-cause mortality in ICU patients with cirrhosis, which needs to be verified in prospective studies.

1 Introduction

Cirrhosis is a terminal disease of various chronic liver diseases, characterized by chronic inflammation, diffuse fibrosis, pseudolobular formation, and portal-systemic circulation in the liver (Parola and Pinzani, 2019). The most common causes include viral hepatitis, alcoholic liver disease, and metabolic fatty liver disease (Paducheva, 2023). As of 2017, there were approximately 10.6 million patients with decompensated cirrhosis and 112 million patients with compensated cirrhosis worldwide, resulting in approximately 1.16 million deaths each year, ranking 11th in the world (Asrani et al., 2019; Sepanlou et al., 2020). Effective clinical interventions are crucial to reduce the risk of death in patients with cirrhosis.

Magnesium ion is the second most abundant cation in human cells and is considered a cofactor for many enzymatic reactions (Van Laecke, 2019). More than 99% of the total Mg2+ in the body is located within cells and is mainly stored in bones (50%–65%), where it participates in the formation of bones together with calcium and phosphorus, and also participates in the formation of muscles, soft tissues and organs (34%–39%), while less than 1%–2% of Mg2+ exists in blood and extracellular fluid (Konrad et al., 2004; Schuchardt and Hahn, 2017). Serum magnesium levels do not usually reflect magnesium levels in different parts of the body because, even when magnesium intake is reduced and magnesium is deficient, magnesium can still be obtained from bones (as well as muscles and internal organs) to maintain normal serum magnesium levels (Rude and Gruber, 2004). Therefore, although serum values are within normal range, the body may be in a state of severe Mg 2+ depletion (De Baaij et al., 2015; DiNicolantonio et al., 2018). Only after a long-term magnesium deficiency can patients develop clinically relevant hypomagnesemia. Most studies conducted in humans have found that blood magnesium concentrations in patients with cirrhosis are lower than those in healthy controls (Rocchi et al., 1994; Koivisto et al., 2002; Kar et al., 2014; Nangliya et al., 2015; Cohen-Hagai et al., 2018; Peng et al., 2021).

In addition, studies have found that magnesium deficiency in hepatocytes and overexpression of the endogenous enzyme TRPM7 are associated with the severity of hepatocyte damage and prognosis in patients with cirrhosis by using atomic absorption spectroscopy and synchrotron X-ray fluorescence microscopy (Parisse et al., 2023). Magnesium ions are essential for ATP metabolism, DNA and RNA synthesis, reproduction, and protein synthesis. Can magnesium supplementation improve outcomes in patients with cirrhosis? Clinical research on this topic is limited.

Magnesium sulfate is a commonly used therapeutic drug. Its main indications include pre-eclampsia and eclampsia, arrhythmias and perioperative pain, and correction of hypomagnesemia (Kunst et al., 2019; Shin et al., 2020; Scott et al., 2022). In addition, studies have shown that magnesium sulfate can restore sinus rhythm in critically ill patients with new-onset atrial fibrillation (Johnston et al., 2022).

There are still limited studies on the specific application of magnesium sulfate in patients with cirrhosis and its effect on mortality. This study aims to explore the relationship between the application of magnesium sulfate and mortality in patients with cirrhosis through a retrospective cohort study, in order to provide further evidence for clinical practice and provide new perspectives for potential treatment strategies.

2 Materials and methods

2.1 Database introduction

This study is a retrospective cohort study in which all data were obtained from the Medical Information Mart for Intensive Care IV (MIMIC-IV) database. The MIMIC-IV database is an extended, freely accessible resource and an important asset for the global research community focused on critical care (Johnson et al., 2023). It was developed by the Massachusetts Institute of Technology (MIT) in collaboration with Beth Israel Deaconess Medical Center and contains detailed health data from more than 40,000 patients hospitalized between 2008 and 2019. The database includes a wide range of information such as demographic details, vital signs, lab test results, medications, and diagnostic codes, providing a comprehensive view of ICU patient care. The first author, Boxian Chen, who has completed the Collaborative Institutional Training Initiative (CITI) program and passed the “Conflicts of Interest” and “Data or Specimens Only Research” examinations (Certification ID: 63562939), was authorized to access the MIMIC-IV database. Patient privacy was safeguarded through the use of anonymous personal identifiers, eliminating the need for informed consent.

2.2 Population selection criteria

Patients whose diagnosis included “cirrhosis” and who were admitted to the ICU for the first time were included in the study. We collected 4,129 hospitalization records of patients with cirrhosis from the MIMIC-IV database. Exclusion criteria are as follows:1. Patients under 18 years old; 2. Patients who used magnesium sulfate before admission to the ICU; 3. Patients with chronic renal failure or heart block; 4. Patients with incorrect data registration (hospitalization time less than 0); 5. Patients with hospitalization time more than 180 days; 6. Patients with missing data on acute kidney injury; 7. Patients with missing baseline blood magnesium concentration. The ICD codes for chronic renal failure and heart block are shown in Supplementary Material S14, S15, respectively. We defined the first blood magnesium concentration on the first day after the patient was admitted to the ICU as the baseline blood magnesium concentration. Ultimately, we identified 3,312 patients with cirrhosis during their first ICU admission. The ICD versions, codes, and diagnostic names of the patients included in the study are shown in Supplementary Material S1. The detailed screening process for the entire study cohort is illustrated in Figure 1. The study cohort was divided into two groups: those who received magnesium sulfate treatment (magnesium sulfate use group) and those who did not (no use group).

Figure 1
Flowchart detailing the selection process from the MIMIC-IV 3.0 database. Initially, 4,129 ICU-admitted cirrhosis patients are considered. Various exclusion criteria reduce the cohort to 3,312 patients. Patients are split into two groups: 2,609 used magnesium sulfate and 703 did not. Propensity score matching results in 654 pairs of matched patients.

Figure 1. Flowchart of the study. Abbreviation: PSM, Propensity score matching; MIMIC-IV, Medical Information Mart for Intensive Care IV.

2.3 Magnesium sulfate exposure

The exposure factor was whether intravenous magnesium sulfate was used after ICU admission, without any restrictions. The information on magnesium sulfate use was obtained from the prescriptions table. Patients with missing data regarding magnesium sulfate exposure were excluded from the analysis.

2.4 Data extraction

Data extraction was performed using Structured Query Language (SQL). The SQL script code was obtained from the GitHub repository (https://github.com/MIT-LCP/mimic-iv). Basic characteristics of the patients were collected, including age, gender, race, weight, and height. We extracted treatment data include invasive ventilation and continuous renal replacement therapy (CRRT). We also extracted information on comorbidities and complications according to the International Classification of Diseases coding system, including myocardial infarction, congestive heart failure, peripheral vascular disease, chronic pulmonary disease, diabetes, renal disease, cancer, hypertension, sepsis, ascites, hepatopulmonary syndrome (HPS), hepatorenal syndrome (HS), hepatic encephalopathy (HE), portal hypertension (PH), diarrhea, spontaneous bacterial peritonitis (SBP), acute kidney injury (AKI). We collected data from the first laboratory tests after admission to the ICU, including red blood cell (RBC), white blood cell (WBC), platelets, hemoglobin, magnesium, potassium, sodium, calcium, chloride, bicarbonate, creatinine, blood urea nitrogen (BUN), aniongap, prothrombin time (PT), activated partial thromboplastin time (APTT), alanine aminotransferase (ALT), aspartate aminotransferase (AST), alkaline phosphatase (ALP), total bilirubin. We also recorded the first disease severity scores (Simplified Acute Physiology ScoreII(SAPSII), charlson comorbidity index (CCI), glasgow coma scale (GCS), Model for End-Stage Liver Disease (MELD), oxford acute severity of illness score (OASIS) and sequential organ failure assessment (SOFA)), and mean vital signs (temperature, respiratory rate (RR), heart rate (HR), mean blood pressure (MBP), oxygen saturation (Spo2)) for the first day after admission to the ICU.

2.5 Primary and secondary outcomes

The primary outcome was in-hospital all-cause mortality. Secondary outcomes included all-cause mortality within 180 days after admission to the ICU.

2.6 Propensity score matching (PSM)

We used propensity score matching to adjust for variables (Yao et al., 2017). The probability of each patient receiving magnesium sulfate (i.e., propensity score) was obtained through logistic regression modeling. Variables included in the propensity score model for matching were demographic characteristics (age, gender), presence of underlying diseases (myocardial infarction, congestive heart failure, peripheral vascular disease, chronic lung disease, diabetes mellitus, cancer, hypertension), presence of comorbidities (ascites, HE, HS, PH, SBP, HPS, sepsis, AKI), vital signs (HR, MBP, RR, temperature, Spo2), disease severity scores (SOFA score, SAPS II score, Charlson Comorbidity Index, MELD score), laboratory tests (RBC, WBC, platelets, creatinine, magnesium, calcium, chloride, bicarbonate potassium, sodium, BUN), and treatment presence (invasive ventilation, CRRT) were also included. Matching was performed using the nearest neighbor method at a 1:1 ratio, with a caliper width of 0.1, without replacement. The balance of variables between groups before and after matching was assessed using standardized mean deviation (SMD), with SMD values less than 0.10 indicating a balanced distribution. The primary analyses were conducted in the matched cohort and aimed to examine the association between magnesium sulfate use and primary and secondary outcomes. The distribution of propensity scores before and after matching is shown in Supplementary Material S2.

2.7 Statistical analysis

As a retrospective analysis, the sample size was based on the data available in the database. Missing rates for each variable are shown in Supplementary Material S3. We excluded variables with more than 25% missing data. For variables with a missing rate of less than 25%, multiple imputation was used to estimate missing values, assuming that the data were missing at random (He, 2010). Normality tests indicated that all continuous variables in this study did not conform to a normal distribution, and therefore, they are presented as medians and interquartile ranges. Comparisons between groups were made using the chi-square test or Fisher‘s exact test for categorical variables, and the Mann-Whitney U test for continuous variables. Standardized mean difference (SMD) was used to represent differences in variables between groups in the original and matched cohorts. To assess the effect of magnesium sulfate use on survival prognosis, multifactorial logistic regression models were created to generate odds ratio (OR) for the primary outcome and their 95% confidence interval (CI). Cox proportional hazards models were created to generate hazard ratio (HR) and 95% CIs for the secondary outcome to determine the independent effect of magnesium sulfate use on patient outcomes. Multivariance expansion factor (VIF) was used to detect multicollinearity between the included variables before performing multivariate logistics regression. A VIF of less than 5 for each variable indicates the absence of multicollinearity (See Supplementary Material S4). The cumulative incidence of all-cause mortality over 180 days was analyzed using the Kaplan-Meier method and assessed using the log-rank test. In addition, we conducted subgroup analyses based on the following factors: age (<60 vs. ≥ 60 years), sex, diabetes, renal disease, hypertension, sepsis, ascites, CRRT, HS, HE, PH, diarrhea, SBP. A two-tailed P < 0.05 was considered statistically significant in all analyses. Statistical analyses were performed using R software (version 4.2.3).

2.8 Sensitivity analyses

We conducted three sensitivity analyses. First, we performed sensitivity analyses on the entire dataset. Then, recognizing that magnesium sulfate may be prognostically beneficial for patients with sepsis (Gu et al., 2023), we conducted sensitivity analyses again by excluding patients with sepsis from the entire dataset. Finally, since some patients took oral magnesium ion preparations (including magnesium oxide, magnesium hydroxide, and magnesium citrate), we excluded these patients and conducted a sensitivity analysis again. With these three sensitivity analyses, we assessed the robustness of the findings obtained from the matched cohort.

3 Results

3.1 Patient characteristics

Before PSM, there were significant differences between the two groups in terms of age, gender, disease severity score, underlying diseases, and complications. After PSM, all variables included in PSM were well balanced between the two groups (SMD <0.10). The baseline characteristics of the unmatched cohort and the matched cohort are shown in Table 1. The distribution balance before and after propensity score matching is shown in Supplementary Material S2.

Table 1
www.frontiersin.org

Table 1. Baseline characteristics between two groups before PSM and after PSM.

3.2 Magnesium sulfate and primary outcomes

In the matched cohort, the in-hospital all-cause mortality rate was 22.02% (144 of 654 patients) for patients who received magnesium sulfate, compared with 31.04% (203 of 654 patients) for those who did not receive magnesium sulfate. This difference between the two groups was statistically significant (p < 0.001) as detailed in Table 1. Further univariate logistic regression analysis (OR = 0.63, 95% CI 0.49-0.80, p < 0.001) and multivariate logistic regression analysis (OR = 0.47, 95% CI 0.33-0.69, p < 0.001) showed that magnesium sulfate use was significantly associated with a reduced risk of in-hospital all-cause mortality. Both univariate Cox analysis (HR = 0.76, 95% CI 0.65-0.89, p < 0.001) and multivariate Cox analysis (HR = 0.61, 95% CI 0.51-0.72, p < 0.001) showed that magnesium sulfate use was associated with a reduced risk of all-cause mortality within 180 days. See Table 2 for details.

Table 2
www.frontiersin.org

Table 2. Association between magnesium sulfate and clinical outcomes in cirrhosis.

3.3 Magnesium sulfate and secondary outcomes

In the matched cohort, the 180-day all-cause mortality rate was 41.44% (271/654) in the cohort using magnesium sulfate and 49.08% (321/654) in the cohort not using magnesium sulfate (p = 0.005). Figure 2 shows the Kaplan-Meier curves of 180-day all-cause mortality stratified by magnesium sulfate use in the matched cohort. Cox regression analysis showed that in the matched cohort, both univariate analysis (HR, 0.76; 95% CI, 0.65–0.89; p < 0.001) and multivariate analysis (HR, 0.61; 95% CI, 0.51–0.72; p < 0.001) showed that the use of magnesium sulfate was associated with a reduced 180-day all-cause mortality rate.

Figure 2
Kaplan-Meier survival curve comparing two groups: one treated with magnesium sulfate (cyan) and one not treated (red). Survival probability decreases over 180 days. The log-rank test shows a significant difference (P < 0.001), with a hazard ratio of 0.758 (95% CI: 0.645–0.891). The number at risk decreases over time for both groups.

Figure 2. Kaplan-Meier survival curves of 180-day all-cause mortality. 0: Magnesium sulfate not used 1: Magnesium sulfate used.

3.4 Subgroup analysis

Figure 3 shows the results of subgroup analysis of in-hospital all-cause mortality and 180-day all-cause mortality in the matched cohort. In the subgroup analysis of in-hospital all-cause mortality, we found significant interactions between magnesium sulfate use and sepsis, hepatic encephalopathy, and diarrhea subgroups (P for interaction less than 0.05), but no significant interactions with other stratification variables (P for interaction >0.05).

Figure 3
Two forest plots labeled A and B present data comparing groups with and without magnesium sulfate across various variables, including gender, diabetes, and renal disease. Odds ratios (OR) for plot A and hazard ratios (HR) for plot B are displayed with confidence intervals. P-values and interactions are noted, indicating statistical significance.

Figure 3. Subgroup analysis of the association between magnesium sulfate use and outcomes in critically ill patients with cirrhosis. (A) In-hospital mortality logistics regression subgroup analysis forest plot. (B) 180-day mortality Cox regression subgroup analysis forest plot. Abbreviation: CRRT, Continuous Renal Replacement Therapy; HS, Hepatorenal syndrome; HE, Hepatic encephalopathy; PH, Portal hypertension; SBP, Spontaneous bacterial peritonitis.

In the subgroup analysis of 180-day all-cause mortality, we found that magnesium sulfate use continued to show significant interactions in the CRRT subgroup (P for interaction = 0.016), and there was no interaction between other stratification variables and magnesium sulfate exposure (P for interaction >0.05).

3.5 Sensitivity analyses

3.5.1 Whole cohort

In the unmatched cohort, logistic regression analysis showed that in-hospital all-cause mortality was significantly inversely correlated with the use of magnesium sulfate. Both univariate analysis (OR, 0.54; 95% CI, 0.45–0.65; p < 0.001) and multivariate analysis (OR, 0.48; 95% CI, 0.37–0.64; p < 0.001) supported this conclusion. More detailed Cox regression analysis results, 180-day all-cause mortality Kaplan-Meier curves stratified by magnesium sulfate use, and subgroup analysis results are shown in Supplementary Material S5–S7.

3.5.2 Excluding sepsis cohort before PSM

Excluding the sepsis cohort, logistic regression analysis revealed a significant negative correlation between magnesium sulfate usage and in-hospital all-cause mortality. This conclusion was supported by both univariate analysis (OR, 0.49; 95% CI, 0.39–0.64; p < 0.001) and multivariate analysis (OR, 0.67; 95% CI, 0.46–0.97; p = 0.036). Further details regarding Cox regression analysis, Kaplan-Meier curves for 180-day all-cause mortality stratified by magnesium sulfate usage, and subgroup analysis results can be found in Supplementary Material S8–S10.

3.5.3 Cohort excluding patients who received oral magnesium preparations

When the cohort was restricted to exclude oral magnesium ion preparations, logistic regression analysis demonstrated a significant inverse relationship between magnesium sulfate administration and in-hospital all-cause mortality. This finding was consistent across both univariate analysis (OR, 0.53; 95% CI, 0.44–0.64; p < 0.001) and multivariate analysis (OR, 0.48; 95% CI, 0.36–0.64; p < 0.001). Supplementary Material S11–S13 provide additional details, including Cox regression analysis results, Kaplan-Meier curves for 180-day all-cause mortality based on magnesium sulfate usage, and subgroup analysis outcomes.

4 Discussion

We conducted a retrospective cohort study based on the MIMIC-IV3.0 database and showed that magnesium sulfate use was associated with reduced in-hospital and 180-day all-cause mortality in critically ill patients with cirrhosis admitted to the ICU. This association was consistent in the propensity score-matched cohort and in sensitivity analyses, demonstrating the robustness of this finding. To our knowledge, this is the first retrospective study to explore the association between magnesium supplementation and outcomes in critically ill cirrhotic patients in the ICU using real-world data.

4.1 Possible explanations for findings

The following reasons may explain why magnesium sulfate use is associated with improved in-hospital and 180-day mortality in patients with critically ill cirrhosis. Magnesium plays a vital role in various physiological processes such as anti-inflammatory response and regulation of oxidative stress (De Baaij et al., 2015; Veronese et al., 2022). In terms of anti-inflammatory effects, magnesium deficiency leads to activation of phagocytes and weakens the calcium channel blocking effect, resulting in increased intracellular calcium concentration and activation of NMDA receptors, which in turn activates cellular inflammatory responses and releases a large amount of inflammatory mediators (Romani, 2013). In addition, magnesium deficiency can activate NF-κB, leading to an aggravated inflammatory response (Kabe et al., 2005). Studies have shown that magnesium supplementation is associated with improvements in inflammatory factors (Eidi et al., 2013). A meta-analysis showed that magnesium supplementation could significantly reduce the levels of inflammatory markers such as CRP in serum, suggesting that magnesium supplementation has the potential to alleviate inflammatory responses (Veronese et al., 2022). In terms of oxidative stress regulation, magnesium deficiency may lead to increased activity of mitochondrial respiratory chain enzymes, resulting in increased reactive oxygen species (ROS) levels and increased oxidative stress (Liu et al., 2007). Magnesium supplementation can inhibit excessive mitochondrial ROS production (Liu et al., 2020). A study from South Korea showed that magnesium salvia miltiorrhiza B (MLB) can inhibit the production of NF-kB and reduce reactive oxygen species (ROS) produced by hepatic stellate cells (Paik et al., 2011). Other studies have shown that magnesium supplementation can improve mitochondrial function and reduce oxidative stress (Liu et al., 2019). Under low magnesium conditions, DNA is more susceptible to ROS damage, while under high magnesium conditions, DNA is less likely to be damaged by ROS. This mechanism may be related to the ability of magnesium to covalently bind to DNA, thereby stabilizing the double helix structure (De Baaij et al., 2015).

In the subgroup analysis of the primary outcome, we found that the use of magnesium sulfate was more effective in reducing the in-hospital mortality of patients with cirrhosis with sepsis, hepatic encephalopathy, and diarrhea. The possible explanations are as follows: 1. Compared with cirrhotic patients without sepsis, cirrhotic patients with sepsis have more severe inflammation in their bodies, thus making full use of the anti-inflammatory effect of magnesium ions. This is consistent with the results of a previous study (Gu et al., 2023). 2. Compared with cirrhotic patients without hepatic encephalopathy, cirrhotic patients with hepatic encephalopathy have worse liver function. Some studies have shown that the degree of magnesium ion deficiency may be related to the severity of cirrhosis in patients with cirrhosis (Nangliya et al., 2015; Chaudhry et al., 2018; Llibre-Nieto et al., 2021). Therefore, the benefits of magnesium sulfate supplementation may be more prominent. 3. Considering that diarrhea may aggravate electrolyte imbalance (include magnesium ion loss), the degree of magnesium deficiency is more severe in patients with cirrhosis and diarrhea, so the protective effect of magnesium sulfate supplementation is significantly enhanced.

4.2 Implications for clinical practice

In this study, we found that the use of magnesium sulfate may be beneficial for the prognosis of patients with cirrhosis. The results of the subgroup analysis of the primary outcome suggest that for patients with cirrhosis who have hepatic encephalopathy, sepsis, and diarrhea, blood magnesium should be actively monitored and magnesium supplementation should be given priority (potentially with greater survival benefits). For patients who do not have hepatic encephalopathy, sepsis, or diarrhea, magnesium supplementation still has a protective effect, but the degree of benefit needs to be weighed against the risks. However, due to the limited sample size of the subgroup, this result may be due to chance and should be interpreted with caution. When magnesium sulfate is overdosed intravenously, nausea, dizziness, weakness and confusion, drowsiness and weakened reflexes may occur, as well as headaches, flushing, urinary complications and gastrointestinal symptoms caused by bladder paralysis (Jahnen-Dechent and Ketteler, 2012; Aal-Hamad et al., 2023). Blurred vision and mild decrease in blood pressure may also occur (Chang et al., 2014; De Baaij et al., 2015). The safety of magnesium sulfate is highly dependent on dose control, administration rate and dynamic monitoring. Clinically, it is necessary to strictly grasp the indications, dynamically evaluate renal function, blood drug concentration and clinical reactions, and avoid empirical medication.

4.3 Study limitations

First, since this is a retrospective cohort study, although propensity score matching and multivariate analysis were used to calibrate confounding variables, the results were affected by residual bias and unmeasured confounders, and causal relationships could not be determined. Second, due to the partial missing of medication dose and duration, we failed to evaluate the effect of magnesium sulfate dose on mortality and could only analyze magnesium sulfate medication as a dichotomous variable. Third, due to the diverse indications of magnesium preparations and the fluctuation of blood magnesium concentration during ICU hospitalization, it was difficult for us to calculate the dose of magnesium preparations required for the study group. Fourth, we performed multiple imputations on covariates with a missing rate of less than 25%, which may introduce systematic bias. Finally, our study did not evaluate the safety of magnesium sulfate.

5 Conclusion

In patients with cirrhosis admitted to the ICU, magnesium sulfate administration was associated with reduced in-hospital all-cause mortality and 180-day all-cause mortality. Prospective studies are needed to confirm this finding.

Data availability statement

Publicly available datasets were analyzed in this study. These data can be found here: https://physionet.org/content/mimiciv/3.0/.

Ethics statement

The studies involving humans were approved by 1. Massachusetts Institute of Technology (MIT) 2. Beth Israel Deaconess Medical Center. The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committee/institutional review board waived the requirement of written informed consent for participation from the participants or the participants’ legal guardians/next of kin because The first author, Boxian Chen, who has completed the Collaborative Institutional Training Initiative (CITI) program and passed the “Conflicts of Interest” and “Data or Specimens Only Research” examinations (Certification ID: 63562939), was authorized to access the MIMIC-IV database. Patient privacy was safeguarded through the use of anonymous personal identifiers, eliminating the need for informed consent.

Author contributions

BC: Methodology, Data Curation, Software, Writing – original draft, Investigation, Visualization, Resources, Conceptualization, Project Administration, Formal Analysis, Validation. YY: Visualization, Methodology, Data Curation, Investigation, Validation, Conceptualization, Project Administration, Writing – review and editing, Resources, Supervision, Formal Analysis, Funding Acquisition, Writing – original draft. ML: Conceptualization, Methodology, Writing – original draft, Formal Analysis, Investigation, Software. YK: Writing – original draft, Data Curation, Formal Analysis, Methodology. RY: Writing – original draft. LZ: Writing – original draft. YH: Writing – original draft. QZ: Writing – original draft. HH: Writing – original draft. JZ: Writing – original draft. ZH: Supervision, Data Curation, Conceptualization, Methodology, Writing – review and editing, Investigation, Project Administration, Visualization, Formal Analysis, Validation, Resources. SY: Supervision, Data Curation, Conceptualization, Methodology, Writing – review and editing, Investigation, Project Administration, Visualization, Formal Analysis, Validation, Resources.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This study was funded by the Guangdong Medical University Affiliated Hospital Big Data Platform, the Guangdong Medical University Affiliated Hospital Inpatient Clinical Research Funding Project (Grant No. LCYJ2023A002), and the Guangdong Medical University Clinical Basic Science and Technology Innovation Special Project (GDMULCJC2024019).

Acknowledgments

The authors thank all colleagues who contributed to this effort.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fphar.2025.1551495/full#supplementary-material

References

Aal-Hamad, A. H., Al-Alawi, A. M., Kashoub, M. S., and Falhammar, H. (2023). Hypermagnesemia in clinical practice. Med. (Mex.) 59, 1190. doi:10.3390/medicina59071190

PubMed Abstract | CrossRef Full Text | Google Scholar

Asrani, S. K., Devarbhavi, H., Eaton, J., and Kamath, P. S. (2019). Burden of liver diseases in the world. J. Hepatol. 70, 151–171. doi:10.1016/j.jhep.2018.09.014

PubMed Abstract | CrossRef Full Text | Google Scholar

Chang, W.-T. W., Radin, B., and McCurdy, M. T. (2014). Calcium, magnesium, and phosphate abnormalities in the emergency department. Emerg. Med. Clin. North Am. 32, 349–366. doi:10.1016/j.emc.2013.12.006

PubMed Abstract | CrossRef Full Text | Google Scholar

Chaudhry, A., Toori, K. U., and Shaikh, J. I. (2018). To determine correlation between biochemical parameters of nutritional status with disease severity in HCV related liver cirrhosis. Pak. J. Med. Sci. 34, 154–158. doi:10.12669/pjms.341.14011

PubMed Abstract | CrossRef Full Text | Google Scholar

Cohen-Hagai, K., Feldman, D., Bot, T. T.-F., Hadary, R., and Kitay-Cohen, Y. (2018). Magnesium deficiency and minimal hepatic encephalopathy among patients with compensated liver cirrhosis, Isr. Med. Assoc. J. 20, 533–538.

PubMed Abstract | Google Scholar

De Baaij, J. H. F., Hoenderop, J. G. J., and Bindels, R. J. M. (2015). Magnesium in man: implications for health and disease. Physiol. Rev. 95, 1–46. doi:10.1152/physrev.00012.2014

PubMed Abstract | CrossRef Full Text | Google Scholar

DiNicolantonio, J. J., O’Keefe, J. H., and Wilson, W. (2018). Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis. Open Heart 5, e000668. doi:10.1136/openhrt-2017-000668

PubMed Abstract | CrossRef Full Text | Google Scholar

Eidi, A., Mortazavi, P., Moradi, F., Rohani, A. H., and Safi, S. (2013). Magnesium attenuates carbon tetrachloride-induced hepatic injury in rats. Magnes. Res. 26, 165–175. doi:10.1684/mrh.2014.0350

PubMed Abstract | CrossRef Full Text | Google Scholar

Gu, W.-J., Duan, X.-J., Liu, X.-Z., Cen, Y., Tao, L.-Y., Lyu, J., et al. (2023). Association of magnesium sulfate use with mortality in critically ill patients with sepsis: a retrospective propensity score-matched cohort study. Br. J. Anaesth. 131, 861–870. doi:10.1016/j.bja.2023.08.005

PubMed Abstract | CrossRef Full Text | Google Scholar

He, Y. (2010). Missing data analysis using multiple imputation: getting to the heart of the matter. Circ. Cardiovasc. Qual. Outcomes 3, 98–105. doi:10.1161/circoutcomes.109.875658

PubMed Abstract | CrossRef Full Text | Google Scholar

Jahnen-Dechent, W., and Ketteler, M. (2012). Magnesium basics. Clin. Kidney J. 5, i3–i14. doi:10.1093/ndtplus/sfr163

PubMed Abstract | CrossRef Full Text | Google Scholar

Johnson, A. E. W., Bulgarelli, L., Shen, L., Gayles, A., Shammout, A., Horng, S., et al. (2023). Author correction: MIMIC-IV, a freely accessible electronic health record dataset. Sci. Data 10, 219. doi:10.1038/s41597-023-02136-9

PubMed Abstract | CrossRef Full Text | Google Scholar

Johnston, B. W., Chean, C. S., Duarte, R., Hill, R., Blackwood, B., McAuley, D. F., et al. (2022). Management of new onset atrial fibrillation in critically unwell adult patients: a systematic review and narrative synthesis. Br. J. Anaesth. 128, 759–771. doi:10.1016/j.bja.2021.11.016

PubMed Abstract | CrossRef Full Text | Google Scholar

Kabe, Y., Ando, K., Hirao, S., Yoshida, M., and Handa, H. (2005). Redox regulation of NF-kappaB activation: distinct redox regulation between the cytoplasm and the nucleus. Antioxid. Redox Signal. 7, 395–403. doi:10.1089/ars.2005.7.395

PubMed Abstract | CrossRef Full Text | Google Scholar

Kar, K., Dasgupta, A., Vijaya Bhaskar, M., and Sudhakar, K. (2014). Alteration of micronutrient status in compensated and decompensated liver cirrhosis. Indian J. Clin. biochem. 29, 232–237. doi:10.1007/s12291-013-0349-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Koivisto, M., Valta, P., Höckerstedt, K., and Lindgren, L. (2002). Magnesium depletion in chronic terminal liver cirrhosis. Clin. Transpl. 16, 325–328. doi:10.1034/j.1399-0012.2002.01141.x

PubMed Abstract | CrossRef Full Text | Google Scholar

Konrad, M., Schlingmann, K. P., and Gudermann, T. (2004). Insights into the molecular nature of magnesium homeostasis. Am. J. Physiol.-Ren. Physiol. 286, F599–F605. doi:10.1152/ajprenal.00312.2003

PubMed Abstract | CrossRef Full Text | Google Scholar

Kunst, G., Milojevic, M., Boer, C., De Somer, F. M. J. J., Gudbjartsson, T., Van Den Goor, J., et al. (2019). 2019 EACTS/EACTA/EBCP guidelines on cardiopulmonary bypass in adult cardiac surgery. Br. J. Anaesth. 123, 713–757. doi:10.1016/j.bja.2019.09.012

PubMed Abstract | CrossRef Full Text | Google Scholar

Liu, Y. X., Guo, Y. M., and Wang, Z. (2007). Effect of magnesium on reactive oxygen species production in the thigh muscles of broiler chickens. Br. Poult. Sci. 48, 84–89. doi:10.1080/00071660601148187

PubMed Abstract | CrossRef Full Text | Google Scholar

Liu, M., Jeong, E.-M., Liu, H., Xie, A., So, E. Y., Shi, G., et al. (2019). Magnesium supplementation improves diabetic mitochondrial and cardiac diastolic function. JCI Insight 4, e123182. doi:10.1172/jci.insight.123182

PubMed Abstract | CrossRef Full Text | Google Scholar

Liu, M., Liu, H., Xie, A., Kang, G.-J., Feng, F., Zhou, X., et al. (2020). Magnesium deficiency causes reversible diastolic and systolic cardiomyopathy. Biophys. J. 118, 245a. doi:10.1016/j.bpj.2019.11.1438

CrossRef Full Text | Google Scholar

Llibre-Nieto, G., Lira, A., Vergara, M., Solé, C., Casas, M., Puig-Diví, V., et al. (2021). Micronutrient deficiencies in patients with decompensated liver cirrhosis. Nutrients 13, 1249. doi:10.3390/nu13041249

PubMed Abstract | CrossRef Full Text | Google Scholar

Nangliya, V., Sharma, A., Yadav, D., Sunder, S., Nijhawan, S., and Mishra, S. (2015). Study of trace elements in liver cirrhosis patients and their role in prognosis of disease. Biol. Trace Elem. Res. 165, 35–40. doi:10.1007/s12011-015-0237-3

PubMed Abstract | CrossRef Full Text | Google Scholar

Paducheva, S. V. (2023). Etiopatogenesis and possibilities of minimally invasive diagnostics of liver cirrhosis: literature review. Perm. Med. J. 40, 78–91. doi:10.17816/pmj40378-91

CrossRef Full Text | Google Scholar

Paik, Y.-H., Yoon, Y. J., Lee, H. C., Jung, M. K., Kang, S. H., Chung, S. I., et al. (2011). Antifibrotic effects of magnesium lithospermate B on hepatic stellate cells and thioacetamide-induced cirrhotic rats. Exp. Mol. Med. 43, 341–349. doi:10.3858/emm.2011.43.6.037

PubMed Abstract | CrossRef Full Text | Google Scholar

Parisse, S., Gianoncelli, A., Isani, G., Gambaro, F. L., Andreani, G., Malucelli, E., et al. (2023). Severity of hepatocyte damage and prognosis in cirrhotic patients correlate with hepatocyte magnesium depletion. Nutrients 15, 2626. doi:10.3390/nu15112626

PubMed Abstract | CrossRef Full Text | Google Scholar

Parola, M., and Pinzani, M. (2019). Liver fibrosis: pathophysiology, pathogenetic targets and clinical issues. Mol. Asp. Med. 65, 37–55. doi:10.1016/j.mam.2018.09.002

PubMed Abstract | CrossRef Full Text | Google Scholar

Peng, X., Xiang, R., Li, X., Tian, H., Li, C., Peng, Z., et al. (2021). Magnesium deficiency in liver cirrhosis: a retrospective study. Scand. J. Gastroenterol. 56, 463–468. doi:10.1080/00365521.2021.1888154

PubMed Abstract | CrossRef Full Text | Google Scholar

Rocchi, E., Borella, P., Borghi, A., Paolillo, F., Pradelli, M., Farina, F., et al. (1994). Zinc and magnesium in liver cirrhosis. Eur. J. Clin. Invest. 24, 149–155. doi:10.1111/j.1365-2362.1994.tb00980.x

PubMed Abstract | CrossRef Full Text | Google Scholar

Romani, A. M. P. (2013). Magnesium in Health and Disease. In: Metal ions in life sciences. Dordrecht: Springer Netherlands. p. 49–79. doi:10.1007/978-94-007-7500-8_3

CrossRef Full Text | Google Scholar

Rude, R. K., and Gruber, H. E. (2004). Magnesium deficiency and osteoporosis: animal and human observations. J. Nutr. Biochem. 15, 710–716. doi:10.1016/j.jnutbio.2004.08.001

PubMed Abstract | CrossRef Full Text | Google Scholar

Schuchardt, J. P., and Hahn, A. (2017). Intestinal absorption and factors influencing bioavailability of Magnesium- an update. Curr. Nutr. Food Sci. 13, 260–278. doi:10.2174/1573401313666170427162740

PubMed Abstract | CrossRef Full Text | Google Scholar

Scott, G., Gillon, T. E., Pels, A., Von Dadelszen, P., and Magee, L. A. (2022). Guidelines—Similarities and dissimilarities: a systematic review of international clinical practice guidelines for pregnancy hypertension. Am. J. Obstet. Gynecol. 226, S1222–S1236. doi:10.1016/j.ajog.2020.08.018

PubMed Abstract | CrossRef Full Text | Google Scholar

Sepanlou, S. G., Safiri, S., Bisignano, C., Ikuta, K. S., Merat, S., Saberifiroozi, M., et al. (2020). The global, regional, and national burden of cirrhosis by cause in 195 countries and territories, 1990–2017: a systematic analysis for the global burden of disease study 2017. Lancet Gastroenterol. Hepatol. 5, 245–266. doi:10.1016/s2468-1253(19)30349-8

PubMed Abstract | CrossRef Full Text | Google Scholar

Shin, H.-J., Na, H.-S., and Do, S.-H. (2020). Magnesium and pain. Nutrients 12, 2184. doi:10.3390/nu12082184

PubMed Abstract | CrossRef Full Text | Google Scholar

Van Laecke, S. (2019). Hypomagnesemia and hypermagnesemia. Acta Clin. Belg. 74, 41–47. doi:10.1080/17843286.2018.1516173

PubMed Abstract | CrossRef Full Text | Google Scholar

Veronese, N., Pizzol, D., Smith, L., Dominguez, L. J., and Barbagallo, M. (2022). Effect of magnesium supplementation on inflammatory parameters: a meta-analysis of randomized controlled trials. Nutrients 14, 679. doi:10.3390/nu14030679

PubMed Abstract | CrossRef Full Text | Google Scholar

Yao, X. I., Wang, X., Speicher, P. J., Hwang, E. S., Cheng, P., Harpole, D. H., et al. (2017). Reporting and guidelines in propensity score analysis: a systematic review of cancer and cancer surgical studies. JNCI J. Natl. Cancer Inst. 109, djw323. doi:10.1093/jnci/djw323

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: liver cirrhosis, magnesium sulfate, MIMIC-IV, all-cause mortality, propensity score matching

Citation: Chen B, Yang Y, Liang M, Kou Y, Ye R, Zhan L, Huang Y, Zhang Q, Huang H, Zheng J, Huang Z and Ye S (2025) The use of magnesium sulfate can reduce the mortality risk of cirrhosis patients: a retrospective cohort study. Front. Pharmacol. 16:1551495. doi: 10.3389/fphar.2025.1551495

Received: 25 December 2024; Accepted: 29 September 2025;
Published: 20 October 2025.

Edited by:

Ralf Weiskirchen, RWTH Aachen University, Germany

Reviewed by:

Qiyang Li, Southern Medical University, China
Alda Pereira Da Silva Oliveira, University of Lisbon, Portugal

Copyright © 2025 Chen, Yang, Liang, Kou, Ye, Zhan, Huang, Zhang, Huang, Zheng, Huang and Ye. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Zhe Huang, Mzk2MDE4NjE4QHFxLmNvbQ==; Shicai Ye, eWVzaGljYWlAZ2RtdS5lZHUuY24=

These authors have contributed equally to this work

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.