This medication is used to treat seizure disorders, mental/mood conditions (such as the manic phase of bipolar disorder), and to prevent migraine headaches. It works by restoring the balance of certain natural substances (neurotransmitters) in the brain.