Answer:
Environmental factors play major role in influencing natural selection which ultimately influence genetic variation of the population and leads to evolution.
Natural selection favors the survival of the organisms which have better adaptations towards the changing environment. Thus, rest all the organisms fail to survive due to which genetic diversity of the population decreases.
For example, the increasing temperature of oceans is the major concern. Due to change in the temperature of the habitat (environmental factor) many organisms of a marine population (say a species X) have died.
Decrease in population size of X reduces the genetic diversity of the entire population.
However, the organisms which are better adapted to increased temperature will survive and eventually evolve with time.
Change in the population of Peppered Moth during and after industrial revolution is an another example which also explains how environmental factor influence natural selection.