Abstract. In Georgia (USA) the soldier beetle, Chauliognathus pennsylvanicus (Coleoptera; Cantharidae), exhibits clinal variation in the length of the spot on its elytron. This suggests that the viability of phenotypes varies by habitat. Evidence of viability selection comes from within-site changes in the spot length distribution across a breeding season. When males with spots of intermediate length became less frequent, they became disproportionately less likely to mate, consistent with either a loss of vigor among remaining males or female rejection of disfavored phenotypes. Persistent, daily courtship by males provides females with the opportunity to track changes in male phenotype frequency and to exercise choice for phenotypes favored under natural selection. A laboratory experiment in which the frequency of one spot morph (long) or the other (short) was increased from 25% to 75% over a period of 30 days revealed that females possess a flexible preference that leads them to prefer whichever spot type has become more common over time. A haploid genetic model demonstrates that a flexible female preference for the locally favored male phenotype can be selected for when different viability alleles, genetically correlated with the male trait, are favored in different habitats that are linked by gene flow. Thus, migration between different kinds of habitat patches of a metapopulation could maintain the variation in male quality. This variation favors female choice for any trait that is directly or indirectly favored by natural selection. Such choice imparts positive frequency-dependent selection that could rapidly fix traits pleiotropically linked to viability. Rapid fixation would cause differentiation between populations of colonizing species as females exercise choice for mates favored under new ecological conditions.