Spironolactone is a diuretic used to treat congestive heart failure and fluid accumulation in the abdomen (ascites).