Xanax is the brand name of alprazolam, a prescription drug used to treat anxiety disorders. Xanax is prescribed for generalized anxiety disorder (GAD), anxiety associated with depression, and panic disorder. Other uses include treatment of depression and premenstrual syndrome (PMS).