Xanax is a benzodiazepine that calms you down by slowing down nerve cell activity in the brain. Xanax (alprazolam) is used to treat anxiety disorders and panic disorders. It belongs to a group of medicines called benzodiazepines which act on the nervous system. Benzodiazepines affect chemicals in the brain that may become unbalanced and cause anxiety.