Xanax is a benzodiazapine. They work on the receptors. When you take a xanax, it is the fastest acting medication. It acts in less than 7 minutes depending on how bad the anxiety attack is. It blocks your mind from thinking that you’re having a panic attack.