Acetazolamide is a carbonic anhydrase inhibitor that reduces the reabsorption of bicarbonate in the kidneys, leading to increased urine output and a more acidic urine. It is primarily used to treat glaucoma, altitude sickness, epilepsy, and sometimes edema.