Natural selection is the major mechanism of evolution that acts on phenotypic variations. It results from competition for limited resources that leads to differential survival of individuals with more favorable phenotypes, allowing them to produce more offspring and pass down their traits. Three types of natural selection are stabilizing selection, which selects for average traits; directional selection, which selects against one extreme of a trait; and disruptive selection, which selects against individuals in the middle of two trait extremes. Genetic variation within populations is important for adapting to changing environments through natural selection.