Alprazolam, commonly known by the brand name Xanax, is a prescription medication used to treat anxiety and panic disorders. It belongs to the benzodiazepine.