The prefrontal cortex directs higher-order cognitive and behavioral processes 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. We enrolled pregnant women between 1999-2000 in a birth cohort drawn from an agricultural region of California. We measured dialkyl phosphate (DAP) metabolites of OP pesticides in maternal pregnancy urine (13 and 26 weeks) and estimated associations with behaviors related to attention deficit hyperactivity disorder and executive function, assessed longitudinally; n=351 provided outcome data at any point between ages 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, self-report). Higher gestational DAPs were consistently associated with behaviors related to attention deficit hyperactivity disorder and executive function. For example, a 10-fold increase in gestational DAPs was associated with poorer longitudinally assessed Behavior Rating Inventory of Executive Function scores, reported by mothers (β=4.0; 95% CI: 2.1, 5.8; higher score indicates more problems), and Weschler Intelligence Scale for Children Working Memory scores (β=-3.8 point reduction (95% CI: -6.2, -1.3). Reducing gestational exposure to OP pesticides through public health policy is an important goal.