Diamox is a medication that belongs to a class of drugs called carbonic anhydrase inhibitors. It works by decreasing the production of a substance called carbonic anhydrase in the body. By doing so, Diamox helps to reduce fluid buildup and lower the pressure in certain parts of the body, such as the eyes or brain. It is commonly used to treat conditions like glaucoma, altitude sickness, and certain types of seizures.