Xanax is commonly prescribed for the treatment of various anxiety disorders. A benzodiazepine, alprazolam is a generic drug that is marketed under the name Xanax. One class of medications that impact the central nervous system and are psychoactive is called benzodiazepines. Treatment for anxiety disorders and panic disorder frequently involves prescribing Xanax.