Xanax is the brand name for alprazolam, a prescription medication belonging to the benzodiazepine class of drugs. It is commonly used to treat anxiety disorders, panic disorders, and sometimes depression-related anxiety.