Researchers have discovered that many gut bacteria employ a flexible survival strategy to withstand disruptions such as antibiotics and diet changes.