Xanax (alprazolam) is a prescription medication used to treat anxiety disorders, panic attacks, and sometimes depression. It belongs to the benzodiazepine class, which works by depressing the central nervous system, helping to calm the brain and nerv