How does divalproex sodium ER treat epilepsy?

In those with migraine headaches and epilepsy, divalproex sodium ER was shown to decrease the frequency of attacks over a period of time. This medicine increases the chemical gamma-amniobutyric acid (GABA) in the brain. GABA helps to pace brain signals, especially abnormal ones that cause seizures.