Xanax is a class of drugs known as benzodiazepine. It is used to treat anxiety and panic disorder. works by lessening abnormal excitement in the brain. You can take this medicine directly by mouth. Do not take more time. It causes became serious side effects.