The nephron is composed of distinct areas that are specific to regulating different electrolytes.
Loop diuretics: blocks the sodium/potassium/chloride transporter in the ascending loop of Henle, potassium-wasting
Thiazide diuretics: blocks the sodium/chloride transporter in the distal tubule, potassium-wasting
Amiloride: directly blocks sodium channels in the collecting duct, potassium-sparing
Spironolactone: blocks the aldosterone receptors in the cortical collecting duct. This causes a decrease in sodium and water reabsorption and decreases potassium secreting (therefore is potassium-sparing)