Researchers have discovered with the help of computer models how gut bacteria respond to changes in their environment — such as a decrease in oxygen levels or nutrient availability. Microorganisms that normally compete or overthrow one another can switch to a cooperative lifestyle when their living conditions change: They even start producing substances to make life easier for the other species, helping them to survive. The entire microbial community then stabilizes — and together adapts successfully to the new situation.