Xanax (alprazolam) is a prescription drug that’s used to treat anxiety and panic attacks. The drug comes as a tablet that you swallow. It’s usually taken three times daily. Xanax is used to ...