Xanax is a prescription medication that belongs to a class of drugs known as benzodiazepines. It is primarily used to treat anxiety disorders and panic disorders by enhancing the effects of a natural body chemical called gamma-aminobutyric acid (GABA