Xanax is a brand name for the prescription medication alprazolam. It belongs to a class of drugs called benzodiazepines and is primarily used to treat anxiety disorders and panic disorder.
Xanax works by enhancing the effects of a neurotransmitter in the brain called gamma-aminobutyric acid (GABA). GABA helps to calm excessive brain activity, thereby reducing feelings of anxiety and promoting relaxation.