Benzodiazepines are a class of prescription drugs mainly used to treat anxiety and insomnia. Some doctors use them to treat certain cases of tremors, seizures, muscle spasms, and drug and alcohol withdrawal symptoms.