Alprazolam, commonly referred to as Xanax, is a benzodiazepine medication prescribed by doctors for the treatment of anxiety disorders, panic disorders, and anxiety linked with depression. Alprazolam works on the brain chemicals imbalanced in anxious people to produce relaxing and sedative effects.