Diazepam is mainly used to treat anxiety, insomnia, panic attacks and symptoms of acute alcohol withdrawal. It is also used as a premedication for inducing sedation, anxiolysis, or amnesia before certain medical procedures (e.g., endoscopy). Diazepam is the drug of choice for treating benzodiazepine dependence with its long half-life allowing easier dose reduction. Benzodiazepines have a relatively low toxicity in overdose.