Drosophila melanogaster shows clinal variation along latitudinal transects on multiple continents for several phenotypes, allozyme variants, sequence variants, and chromosome inversions. Previous investigation suggests that many such clines are due to spatially varying selection rather than demographic history, but the genomic extent of such selection is unknown. To map differentiation throughout the genome, we hybridized DNA from temperate and subtropical populations to Affymetrix tiling arrays. The dense genomic sampling of variants and low level of linkage disequilibrium in D. melanogaster enabled identification of many small, differentiated regions. Many regions are differentiated in parallel in the United States and Australia, strongly supporting the idea that they are influenced by spatially varying selection. Genomic differentiation is distributed nonrandomly with respect to gene function, even in regions differentiated on only one continent, providing further evidence for the role of selection. These data provide candidate genes for phenotypes known to vary clinally and implicate interesting new processes in genotype-by-environment interactions, including chorion proteins, proteins regulating meiotic recombination and segregation, gustatory and olfactory receptors, and proteins affecting synaptic function and behavior. This portrait of differentiation provides a genomic perspective on adaptation and the maintenance of variation through spatially varying selection.T HE amount and genomic distribution of polymorphism may be influenced by genetic drift, by mutation-selection balance, and by various forms of positive selection such as spatially varying selection, heterozygote advantage, or negative frequency-dependent selection. Spatially varying selection can generate allelefrequency differences between populations in spite of gene flow and lead to local adaptation, which is of particular interest as an intermediate step between intra-and interspecies variation (Felsenstein 1976;Endler 1977;Barton 1983).Drosophila melanogaster has been a model system for investigating the forces maintaining polymorphism for many decades. Indeed, differentiation along latitudinal clines in this species is one of the most thoroughly documented cases of spatially varying selection ( and Singh 1991;Berry and Kreitman 1993;Long and Singh 1995;Gockel et al. 2002;Kennington et al. 2003). The observations that clinal variation is strongly associated with easily measurable phenotypes affecting fitness (Eanes 1999;Gockel et al. 2002;Calboli et al. 2003;Norry et al. 2004;Kennington et al. 2007) and that clines for a number of phenotypes and genetic variants appear to have been independently established on multiple continents (De Jong and Bochdanovits 2003) also strongly support the proposition that many clinal variants are under spatially varying selection and that the biology of temperate and tropical populations may be quite different.Nevertheless, these data represent a small and highly biased picture of the phenotypes and...