Bacteria can evolve rapidly to adapt to environmental change. When the “environment” is the immune response of an infected host, this evolution can turn harmless bacteria into life-threatening pathogens. A new study provides insight into how this happens.