In cases of metal toxicity, cations can play protective or detrimental roles. For instance, calcium and magnesium may protect against cadmium toxicity by competing for binding sites, reducing cadmium uptake. Conversely, certain cations can exacerbate toxicity by facilitating the absorption or transport of toxic metals.