The brain's prefrontal cortex directs higher-order cognitive and behavioral processes that are important for attention, working memory, and inhibitory control. We investigated whether gestational exposure to organophosphate (OP) pesticides was associated with these abilities in childhood and early adolescence. Between 1999 and 2000, we enrolled pregnant women in a birth cohort drawn from an agricultural region of California. We measured dialkyl phosphate (DAP) metabolites of OP pesticides in maternal pregnancy urine samples (13 and 26 weeks) and estimated associations with behaviors related to attention-deficit/hyperactivity disorder and executive function, assessed longitudinally; 351 families provided neurodevelopmental outcome data at any point when the child was aged 7-12 years. We assessed function across multiple dimensions (e.g., working memory, attention), methods (e.g., behavior reports, child assessment), and reporters (e.g., mothers, teachers, child self-reports). Higher gestational DAP concentrations were consistently associated with behaviors related to attention-deficit/hyperactivity disorder and executive function. For example, a 10-fold increase in gestational DAP concentration was associated with poorer longitudinally assessed Behavior Rating Inventory of Executive Function scores, as reported by mothers (β = 4.0 (95% confidence interval: 2.1, 5.8); a higher score indicates more problems), and Weschler Intelligence Scale for Children-Fourth Edition Working Memory scores (a 3.8-point reduction; β = -3.8 (95% confidence interval: -6.2, -1.3)). Reducing gestational exposure to OP pesticides through public health policy is an important goal.