Balancing selection is an evolutionary mechanism that maintains genetic variation within a population by favoring the persistence of multiple alleles at a given locus. It occurs when heterozygous individuals have a higher fitness than either homozygous type, leading to the maintenance of polymorphism in the population.