Xanax (alprazolam) is a fast-acting benzodiazepine used to treat anxiety and panic disorders. It works by enhancing the calming effects of GABA, a neurotransmitter in the brain, helping to reduce excessive nervous activity. Xanax can be habit-forming and is typically prescribed for short-term use.