Xanax, also known as alprazolam, is a prescription medication primarily used to treat anxiety disorders and panic attacks. This popularly prescribed benzodiazepine exerts its effects by boosting the activity of gamma-aminobutyric acid (GABA), a brain signal in the primary nervous system that stimulates relaxation and reduces neuronal excitability.