Suicide prevention is a critical issue for young people. However, no large body of representative data on the risk of suicide attempts in school-aged patients with epilepsy in Taiwan or other developing countries is available. Patients aged≤18years who received a diagnosis of epilepsy between 2000 and 2012 were included in the epilepsy cohort (N=9801). The comparison cohort was matched to the epilepsy cohort at a ratio of 4:1. We calculated the adjusted hazard ratio and 95% confidence intervals (CIs) for suicide attempts after adjustment for age, sex, urbanization level, parental occupation category, comorbidities, and follow-up time. Further analysis was performed to assess the dose-response effect on the risk of attempting suicide based on the average frequency of medical visits for epilepsy. The overall incidence rates of suicide attempts in the epilepsy and comparison cohorts were 15.7 and 5.89 per 100,000 people per year, respectively. The epilepsy cohort had a 2.34-fold higher risk of suicide being attempted (95% CI 2.17-2.52) than did the comparison cohort. Male sex, over 12years of age, and parental occupation of office work were found to be the major risk factors for suicide attempts. Epilepsy might be an independent factor predisposing school-aged patients to suicide attempts. The results of this study could provide clinicians and governments with vital information on suicide prevention for young people with epilepsy in Taiwan and other developing countries.