Xanax, the brand name for alprazolam, is a prescription medication belonging to the benzodiazepine class. It's commonly used to treat anxiety disorders and panic disorders by enhancing the effects of a neurotransmitter called GABA.