Xanax, formally known as this medication, is a prescription medication belonging to the class of benzodiazepines . It's primary function is to manage severe nervousness and some related conditions. The drug works by acting neurotransmitters in the central nervous system, producing a sedative effect.