Genetic diversity refers to the total number of genetic characteristics in the genetic makeup of a species. It serves as a way for populations to adapt to changing environments. Greater genetic diversity within a species means that there is a higher probability that some individuals possess variations of alleles that are suited for the environment.