They are used to treat anxiety, panic disorders, and seizures by enhancing a chemical in the brain (GABA) that causes a calming and relaxing effect. The valium is used for Long-term anxiety, muscle spasms, and alcohol withdrawal. and ativan is used for acute, immediate anxiety attacks and insomnia.Valium vs Ativan is a common comparison because both medications calm the nervous system but differ in duration and typical use.