Acetazolamide, sold under the trade name Diamox among others, is a medication used to treat glaucoma, epilepsy, altitude sickness, periodic paralysis, idiopathic intracranial hypertension, urine alkalinization, and heart failure.