Diazepam is used to treat anxiety disorders, alcohol withdrawal symptoms, or muscle spasms. It may also be used to cause memory loss during certain medical procedures. Take this medication by mouth with or without food as directed by your doctor. If you are using the liquid form of this medication, carefully measure the dose using a special measuring device/spoon. Do not use a household spoon because you may not get the correct dose.