Brain phenotypes showing environmental influence may help clarify unexplained associations between urban exposure and psychiatric risk. Heritable prefrontal fMRI activation during working memory (WM) is such a phenotype. We hypothesized that urban upbringing (childhood urbanicity) would alter this phenotype and interact with dopamine genes that regulate prefrontal function during WM. Further, dopamine has been hypothesized to mediate urban-associated factors like social stress. WM-related prefrontal function was tested for main effects of urbanicity, main effects of three dopamine genes-catechol-O-methyltransferase (COMT), dopamine receptor D1 (DRD1), and dopamine receptor D2 (DRD2)-and, importantly, dopamine gene-by-urbanicity interactions. For COMT, three independent human samples were recruited (total n = 487). We also studied 253 subjects genotyped for DRD1 and DRD2. 3T fMRI activation during the N-back WM task was the dependent variable, while childhood urbanicity, dopamine genotype, and urbanicity-dopamine interactions were independent variables. Main effects of dopamine genes and of urbanicity were found. Individuals raised in an urban environment showed altered prefrontal activation relative to those raised in rural or town settings. For each gene, dopamine genotype-by-urbanicity interactions were shown in prefrontal cortex-COMT replicated twice in two independent samples. An urban childhood upbringing altered prefrontal function and interacted with each gene to alter genotype-phenotype relationships. Gene-environment interactions between multiple dopamine genes and urban upbringing suggest that neural effects of developmental environmental exposure could mediate, at least partially, increased risk for psychiatric illness in urban environments via dopamine genes expressed into adulthood.