ABSTRACT: Importance:Valproate is an antiepileptic drug (AED) used in the treatment of epilepsy and many other neurological and psychiatric disorders. Its use in pregnancy is associated with increased risks of congenital malformations and adverse neurodevelopment in the offspring and may be associated with an increased risk of attention-deficit/hyperactivity disorder (ADHD). Objective:To determine whether prenatal exposure to valproate and other AEDs is associated with an increased risk of ADHD in the offspring. Design, Setting, and Participants:This was a population-based cohort study of all live-born singleton children in Denmark from January 1, 1997, to December 31, 2011 (N?=?913?302). Information on prenatal exposure to AEDs, including valproate, was obtained from the Danish National Prescription Registry and all children with ADHD were identified (children with diagnosed ADHD in the Danish Psychiatric Central Research Register or children who redeemed a prescription for ADHD medication). The cohort was followed up from birth until the day of the ADHD diagnosis, death, emigration, or December 31, 2015, whichever came first. Data were analyzed in September 2018. Exposures:Maternal use of valproate and other AEDs in pregnancy. Main Outcomes and Measures:Cox regression estimates of the hazard ratio of ADHD. Estimates were adjusted for potential confounders. Results:The cohort included 913?302 children (mean age at end of study, 10.1 years; median age, 9.4 years; interquartile range, 7.2-12.8 years; 468?708 [51.3%] male). A total of 580 were identified as having been exposed to valproate during pregnancy; of them, 49 (8.4%) had ADHD. Among the 912?722 children who were unexposed to valproate, 29?396 (3.2%) had ADHD. Children with prenatal valproate exposure had a 48% increased risk of ADHD (adjusted hazard ratio, 1.48; 95% CI, 1.09-2.00) compared with children with no valproate exposure. The absolute 15-year risk of ADHD was 4.6% (95% CI, 4.5%-4.6%) in children unexposed to valproate and 11.0% (95% CI, 8.2%-14.2%) in children who were exposed to valproate in pregnancy. No associations were found between other AEDs and ADHD. Conclusions and Relevance:Maternal use of valproate, but not other AEDs, during pregnancy was associated with an increased risk of ADHD in the offspring. These findings have important implications for the counseling of women of childbearing potential using valproate.