Epilepsy surgery is a procedure that removes an area of the brain where seizures occur. Epilepsy surgery is most effective when seizures always occur in a single location in the brain.