Children born less than 30 weeks gestational age (GA) are at high risk for neurodevelopmental delay compared to term peers. Prenatal risk factors and neonatal epigenetics could help identify preterm children at highest risk for poor cognitive outcomes. We aimed to understand the associations among cumulative prenatal risk, neonatal DNA methylation, and child cognitive ability at age 3 years, including whether DNA methylation mediates the association between prenatal risk and cognitive ability. We studied 379 neonates (54% male) born less than 30 weeks GA who had DNA methylation measured at neonatal intensive care unit discharge along with 3-year follow-up data. Cumulative prenatal risk was calculated from 24 risk factors obtained from maternal report and medical record and epigenome-wide neonatal DNA methylation was assayed from buccal swabs. At 3-year follow-up, child cognitive ability was assessed using the Bayley Scales of Infant and Toddler Development (third edition). Cumulative prenatal risk and DNA methylation at two cytosine-phosphate-guanines (CpGs) were uniquely associated with child cognitive ability. Using high-dimensional mediation analysis, we also identified differential methylation of 309 CpGs that mediated the association between cumulative prenatal risk and child cognitive ability. Many of the associated CpGs were located in genes (TNS3, TRAPPC4, MAD1L1, APBB2, DIP2C, TRAPPC9, DRD2) that have previously been associated with prenatal exposures and/or neurodevelopmental phenotypes. Our findings suggest a role for both prenatal risk factors and DNA methylation in explaining outcomes for children born preterm and suggest we should further study DNA methylation as a potential mechanism underlying the association between prenatal risk and child neurodevelopment. (PsycInfo Database Record (c) 2024 APA, all rights reserved).