This study analyzes the behavior of sodium polyacrylate (NaPA) as a rheological modifier for clay-based tailings. Special emphasis is placed on the impact of calcium and magnesium ions in industrial water, which are analyzed through rheograms, zeta potential measurements, and molecular dynamics simulations. The results are interpreted as electrostatic interactions, steric phenomena, and cation solvation. This interpretation integrates experimental studies with microscopic analyses, employing molecular dynamics simulations to elucidate the underlying mechanisms. In all cases, a decrease in the yield stress of synthetic slurries is observed as the dosing of NaPA increases due to greater repulsion between tailings particles through an increase in electrostatic repulsion and larger steric forces that hinder agglomeration. However, efficiency is reduced in the presence of divalent cations as zeta potential measurements suggest a reduction in the electrical charges of the particles and the polymer, making its application more challenging. The differences obtained in the presence of calcium compared to magnesium are explained in terms of the solvation of these ions and their impact on the polymer conformation in solution and adsorption on the mineral surfaces. This explanation is reinforced by molecular dynamics studies, which indicate that polymer adsorption on minerals depends on the type of mineral and type of ion. Particularly for quartz, the highest adsorption of NaPA occurs in the presence of calcium, whereas for a kaolinite surface, the highest polymer adsorption is obtained in the presence of magnesium. The competitive effect of these phenomena leads to the rheological behavior of the tailings being dominated by the effects originating in the clay.