This article is from the Epilepsy FAQ, by Andrew Patrick (firstname.lastname@example.org) with numerous contributions by others.
Surgery is used only when medication fails and only in a small
percentage of cases where the injured brain tissue causing the seizures
is confined to one area of the brain and can be safely removed without
damaging personality or functions.