Xanax, also known by its generic name alprazolam, is a prescription medication classified as a benzodiazepine. Benzodiazepines are central nervous system depressants that work by enhancing the effects of a neurotransmitter called gamma-aminobutyric acid (GABA). This neurotransmitter helps to calm the brain and reduce feelings of anxiety and panic.