Xanax is a medicine that doctors give to people who have a lot of anxiety or panic attacks. It belongs to a group of medicines called “benzodiazepines,” which help your brain feel more relaxed. Xanax works by helping a special chemical in your brain called GABA. GABA makes your brain feel calm, and Xanax helps GABA do its job even better.