Spironolactone is a potassium-sparing diuretic commonly used in pediatrics to treat various conditions related to fluid retention and certain hormonal imbalances. It works by blocking the action of aldosterone, a hormone that causes the kidneys to retain sodium and excrete potassium.