2In plants, local adaptation across species range is frequent. Yet, much has to 3 be discovered on its environmental drivers, the underlying functional traits and their 4 molecular determinants. Genome scans are popular to uncover outlier loci potentially 5 involved in the genetic architecture of local adaptation, however links between 6 outliers and phenotypic variation are rarely addressed. Here we focused on adaptation 7 of teosinte populations along two elevation gradients in Mexico that display 8 continuous environmental changes at a short geographical scale. We used two 9 common gardens, and phenotyped 18 traits in 1664 plants from 11 populations of 10 annual teosintes. In parallel, we genotyped these plants for 38 microsatellite markers 11 as well as for 171 outlier single nucleotide polymorphisms (SNPs) that displayed 12 excess of allele differentiation between pairs of lowland and highland populations 13 and/or correlation with environmental variables. Our results revealed that phenotypic 14 differentiation at 10 out of the 18 traits was driven by local selection. Trait covariation 15 along the elevation gradient indicated that adaptation to altitude results from the 16 assembly of multiple co-adapted traits into a complex syndrome: as elevation 17 increases, plants flower earlier, produce less tillers, display lower stomata density and 18 carry larger, longer and heavier grains. The proportion of outlier SNPs associating 19 with phenotypic variation, however, largely depended on whether we considered a 20 neutral structure with 5 genetic groups (73.7%) or 11 populations (13.5%), indicating 21 that population stratification greatly affected our results. Finally, chromosomal 22 inversions were enriched for both SNPs whose allele frequencies shifted along 23 elevation as well as phenotypically-associated SNPs. Altogether, our results are 24 consistent with the establishment of an altitudinal syndrome promoted by local 25 selective forces in teosinte populations in spite of detectable gene flow. Because 26 elevation mimics climate change through space, SNPs that we found underlying 27 phenotypic variation at adaptive traits may be relevant for future maize breeding. 28 29 Author summary 33 Across their native range species encounter a diversity of habitats promoting local 34 adaptation of geographically distributed populations. While local adaptation is 35widespread, much has yet to be discovered about the conditions of its emergence, the 36 targeted traits, their molecular determinants and the underlying ecological drivers. 37Here we employed a reverse ecology approach, combining phenotypes and genotypes, 38 to mine the determinants of local adaptation of teosinte populations distributed along 39 two steep altitudinal gradients in Mexico. Evaluation of 11 populations in two 40 common gardens located at mid-elevation pointed to adaptation via an altitudinal 41 multivariate syndrome, in spite of gene flow. We scanned genomes to identify loci 42 with allele frequencies shifts along elevation, a subset of whic...