Alprazolam is used to treat anxietyandpanicdisorders. It belongs to a class of medications called benzodiazepines which act on the brain and nerves to produce a calming effect. It works by enhancing the effects of a certain natural chemical in the body (GABA).