Xanax is a benzodiazepine medication used to treat anxiety and panic disorders. It is a central nervous system depressant that produces a calming effect. Xanax is a Schedule IV controlled substance, meaning it has a potential for abuse and dependence.