Abstract Acute pancreatitis (AP) concurrent with acute kidney injury (AKI) remarkably elevates the risk of adverse outcomes in affected individuals. Abnormal serum magnesium concentrations have been linked to AKI development across diverse patient populations; however, the prognostic significance of serum magnesium levels at multiple time points (60 days, 90 days, 180 days, and 365 days) remains inadequately explored in AP patients with AKI admitted to the intensive care unit (ICU).