Mannitol is an osmotic diuretic that works by increasing osmotic pressure in the kidneys, promoting water and electrolyte excretion. It is commonly used to reduce intracranial pressure, treat cerebral edema, and manage acute glaucoma by drawing fluid out of tissues into the bloodstream.