Spironolactone is a potassium-sparing diuretic commonly used to treat conditions such as hypertension, heart failure, ascites due to liver cirrhosis, and certain cases of hyperaldosteronism. By blocking the action of aldosterone, it promotes the excretion of sodium and water while retaining potassium.