Phase variation contributes to virulence by generating heterogeneity. Although it has been most commonly studied in the context of immune evasion, it is observed in many other areas as well and is employed by various types of bacteria, including Salmonella species.