There are many different kinds of epilepsy. The treatment is selected based on the cause of the epilepsy. Medications are the most common treatment, and are usually the first to be tried. There are many available medications, and the type of medicine that is prescribed depends on the kind of epilepsy the person has. In some instances, brain surgery is used to treat seizures. In others, an electrical stimulating device called vagal nerve stimulator (VNS) is implanted in order to reduce or stop seizures.