Objective: To evaluate the association between dysnatremias or dyschloremias and mortality during hospitalization in patients with acute kidney injury (AKI) or chronic kidney disease (CKD) undergoing acute hemodialysis. Methods: We carried out a retrospective cohort study on adult patients undergoing acute hemodialysis with AKI or CKD diagnosis at a public hospital in Lima, Peru. Dysnatremias were categorized as hyponatremia (Na < 135mmol/L) or hypernatremia (Na > 145mmol/L), and dyschloremias were defined as hypochloremia (Cl < 98 mmol/L) or hyperchloremia (Cl > 109mmol/L). The outcome of interest was mortality during hospitalization. We performed generalized lineal Poisson family models with bias-corrected and accelerated non-parametric bootstrap to estimate the risk ratios at crude (RR) and adjusted analysis (aRR) by gender, age, HCO3 (for all patients) and Liaño score (only for AKI) with CI95%. Results: We included 263 patients (mean age: 54.3 years, females: 43%): 191 with CKD and 72 with AKI. Mortality was higher in patients with AKI (59.7%) than in patients with CKD (14.1%). In overall, patients with hypernatremia had a higher mortality during hospitalization compared to those who had normal sodium values (aRR: 1.82, 95% CI: 1.17-2.83); patients with hyponatremia did not have different mortality (aRR: 0.19, 95% CI: 0.69-2.04). We also found that hyperchloremia (aRR: 1.35, 95% CI: 0.83-2.18) or hypochloremia (aRR: 0.66, 95% CI: 0.30-14.78) did not increase mortality in comparison to normal chloride values. No association between dysnatremias or dyschloremias and mortality during hospitalization was found in CKD and AKI subgroups. Conclusions: In our exploratory analysis, only hypernatremia was associated with mortality during hospitalization among patients with AKI or CKD undergoing acute hemodialysis.