Genetic diversity a major determinant for the capacity of species to persist and adapt to their environments. Unraveling the factors affecting genetic differentiation is crucial to understand how genetic diversity is shaped and species may react to changing environments. We employed genotyping by sequencing to test the influence of climate, space, latitude, altitude and land cover on genetic differentiation in a collection of 81 wild pea samples (Pisum sativum ssp. elatius) from across its distribution range from western Europe to central Asia. We also attempted to elucidate the species recent evolutionary history and its effect on the current distribution of genetic diversity. Association of single SNPs with climate variables were analyses to test for signatures of local adaptation. Genetic variation was geographically structured into six distinct genetic cluster. Two of which were associated with a taxonomic group (Pisum sativum ssp. humile) that according to some researchers does not qualify for a sub-species rank due to its alleged lack of genetic distinctness from other conspecific groups. The effect of the tested factors influencing genetic differentiation were rather variable among genetic clusters. The climate predictors were most important in all clusters. Land use was more important in clusters from areas strongly influenced by human land use, especially by agriculture. We found a statistically significant association of 3,623 SNPs (2.4 % of all SNPs) with one of the environmental predictors. Most of them were correlated with latitude followed by temperature, precipitation and altitude. Estimation of SNP effects of the candidates resulted in a missense to silent ratio of 0.45, suggesting many of the observed candidates SNPs may alter the encoded amino acid sequence. Wild peas went through a genetic bottleneck during the last glacial period followed by population recovery. Probably associated with this population recovery, we detected a range expansion, which may have led to an eastward range expansion of the European cluster to Turkey and thereof southwards and eastwards. Overall, the interplay of several environmental factors and the recent evolutionary history affected the distribution of genetic diversity in wild peas where each subpopulations were differently affected by those factors and processes.