Xanax 2mg tablets are a prescription medication primarily used to manage anxiety and panic disorders. As part of the benzodiazepine family, Xanax works by calming the brain and nerves, providing fast-acting relief from symptoms of anxiety and stress.