Genetic variation allows populations to adapt to changing environments. Natural selection acts on individuals with beneficial variations, allowing them to survive and reproduce. Over time, these beneficial traits become more common, driving evolution.