Xanax bars is a used for anxiety and panic disorder related issues. It is also used to treat severe anxiety in patients with social anxiety disorder (social phobia). Xanax belongs to a group of medicines called benzodiazepines. It works by slowing down the messages between the brain, nerves and muscles to help reduce symptoms of anxiety.