Alprazolam is a benzodiazepine. It affects chemicals in the brain that may be unbalanced in people with anxiety. Alprazolam is used to treat anxiety disorders, panic disorders, and anxiety caused by depression.