Alprazolam, a medication commonly sold under the brand name Xanax, is a prescription drug used to treat anxiety disorders, panic disorders, and anxiety caused by depression. It belongs to a class of drugs called benzodiazepines, which work by enhancing the effect of a certain natural chemical in the body (GABA).