Website:- https://linktr.ee/riteaidpharmacy.org Xanax is prescribed to treat generalized anxiety disorder (GAD) and panic disorder (with or without agoraphobia) and to temporarily lessen symptoms of anxiety.4