Most diuretics wash potassium out. Potassium-sparing diuretics hold on to it, so they are often paired with the others.
Potassium-sparing diuretics are either ENaC blockers (amiloride, triamterene) or aldosterone antagonists (spironolactone, eplerenone). Amiloride has a weak diuretic effect and is usually given alongside a thiazide or loop diuretic to stop potassium falling. Spironolactone acts in the cortical collecting duct and is used for ascites, heart failure, nephrotic syndrome and Conn's syndrome. Use them with caution with ACE inhibitors, because of the risk of hyperkalaemia.