Xanax is a brand name for the prescription medication alprazolam, a type of benzodiazepine. It is commonly used to treat anxiety and panic disorders. Xanax works by increasing the activity of a neurotransmitter called GABA in the brain, which promotes relaxation and reduces stress and anxiety.