Ouabain binds selectively to the Na+/K+-ATPase pump, leading to increased intracellular sodium ions. This accumulation affects the sodium-calcium exchanger, resulting in increased intracellular calcium levels. This calcium influx heightens cardiac contractility, which is beneficial in treating heart failure but can be dangerous at high doses, potentially leading to arrhythmias.