Xanax (alprazolam) is a medication used to treat anxiety disorders. It is a benzodiazepine, meaning it works by calming the brain and nerves. Xanax can be bought without a prescription in most countries, and it is also available as a generic medication. Xanax can be taken with or without food, and it is usually safe to take for several months at a time. It is important to keep in mind that Xanax can cause drowsiness and impairment in coordination, so it is not recommended for people who operate heavy machinery or drive vehicles.