Xanax, the brand name for alprazolam, is a commonly prescribed medication that belongs to a class of drugs called benzodiazepines. This medication is employed primarily to address anxiety disorders and panic attacks. Xanax works by promoting the effects of gamma-aminobutyric acid (GABA), a neurotransmitter in the brain that has relaxing influences.