BackgroundA growing body of literature links prenatal mood and substance use to children's cognitive and behavioral development. The relative contribution of these risk factors on children's executive function (EF) in the context of socioeconomic adversities needs further evaluation. To address this gap, we investigated the role of prenatal maternal anxiety and depression on childhood EF, specifically inhibitory control and working memory, within the context of socioeconomic adversities and prenatal substance use. We hypothesized that higher maternal mood symptoms, higher persistent prenatal drinking and smoking, and lower socioeconomic status would be associated with lower EF skills during early childhood.MethodsWe used data from 334 mother–child dyads followed prospectively through pregnancy and the offspring’s childhood. Prenatal maternal depression and anxiety were assessed via standardized questionnaires. Prenatal alcohol and tobacco consumption were assessed via a timeline follow-back interview. The EF touch battery assessed child inhibitory control and working memory at 3–5 years of age (4.76 ± 0.58 years, 171 females). Separate linear regression models were used to estimate the association of prenatal tobacco, alcohol, anxiety, and depression exposure with our two components of child EF, inhibitory control and working memory, while adjusting for gestational age, sex, and age at assessment. The following variables were also included as covariates: maternal educational achievement, employment status, parity, and household crowding index.ResultsChildren of mothers with high trait anxiety scores had reduced inhibitory control compared to children of mothers without trait anxiety or depression (β = -0.12, 95% CI:-0.22,-0.01). Children of mothers in the moderate to high continuous smoking group showed lower inhibitory control (β = − 0.19, 95% CI:-0.38,-0.01) compared to children of mothers in the none smoking group. Additionally, lower maternal education and higher household crowding were each associated with reduced inhibitory control. We found no significant association between prenatal maternal depression, anxiety, or socioeconomic factors with working memory.ConclusionsThese results underscore the need for comprehensive context-specific intervention packages, including mental health support for women to promote healthy inhibitory control development in children.