Selection such as environmental condition and mating will have an effect on the genetic variation.
There is also other effect such as the founder effect and bottleneck effect. The founder effect is when a small group of individuals becomes isolated from the main population due to geographical reason. The bottleneck effect is cause by a sudden reduction in the number of individuals in a population. It is usually not related to genetic advantage. A flood or a mass killing could be examples.