Xanax is a very effective product for treating anxiety issues, particularly panic disorder. It is a class of drugs called benzodiazepine. It works by lessening abnormal excitement in the brain and the effects of certain natural chemicals in the body.