Inbreeding avoidance, or the inbreeding avoidance hypothesis, is a concept in evolutionary biology that refers to the prevention of the harmful effects of inbreeding. The inbreeding avoidance hypothesis posits that certain mechanisms develop within a species, or within a given population of a species, as a result of assortative mating and natural and sexual selection, in order to prevent breeding among related individuals. Although inbreeding may impose certain evolutionary costs, inbreeding avoidance, which limits the number of potential mates for a given individual, can inflict opportunity costs. Therefore, a balance exists between inbreeding and inbreeding avoidance. This balance determines whether inbreeding mechanisms develop and the specific nature of such mechanisms.
Inbreeding can result in inbreeding depression, which is the reduction of fitness of a given population due to inbreeding. Inbreeding depression occurs via appearance of disadvantageous traits due to the pairing of deleterious recessive alleles in a mating pair's progeny. When two related individuals mate, the probability of deleterious recessive alleles pairing in the resulting offspring is higher as compared to when non-related individuals mate because of increased homozygosity. However, inbreeding also gives opportunity for genetic purging of deleterious alleles that otherwise would continue to exist in population and could potentially increase in frequency over time. Another possible negative effect of inbreeding is weakened immune system due to less diverse immunity alleles as a result of outbreeding depression.