Epilepsy surgery is mainly used for refractory epilepsy and secondary epilepsy. The diagnosis of refractory epilepsy is: 1. The duration of epilepsy is more than 3 to 4 years. 2. At least 1 seizure per month. 3. The seizures are not controlled by long-term, systemic treatment with multiple antiepileptic drugs, even with blood drug concentration monitoring. In secondary epilepsy, simple excision of the lesion can usually control seizures and reduce the amount of antiepileptic drugs used. Therefore, in secondary epilepsy, early surgical treatment is preferable if the lesion is found. Preoperative evaluation of epilepsy surgery and localization of the epileptic foci are very important. The clinical applications of neuroimaging, neurophysiology, neuro-nuclear medicine, magnetoencephalography and functional nuclear magnetism in recent years have effectively improved the preoperative localization of epileptogenic foci and greatly facilitated the development of epilepsy surgery.