Divalproex sodium is a medication used primarily in the treatment of epilepsy, bipolar disorder, and migraines. It is a compound that combines sodium valproate and valproic acid, both of which are anticonvulsant medications.

In the treatment of epilepsy, divalproex sodium works by increasing the levels of gamma-aminobutyric acid (GABA), a neurotransmitter that helps to calm overactive nerve signals in the brain. This action helps to prevent seizures from occurring or reduces their frequency and severity.