Xanax is a category of medicine that is used to treat anxiety and panic disorder. It is called a benzodiazepine. works by lessening abnormal excitement in the brain. It calms down your nervous system. Do not take more time if you are taking it you can take it with breakfast or without breakfast