The intestinal bacterium E. coli can adapt to changes in its surroundings. Scientists have discovered how the H-NS protein makes this possible. This new knowledge can be an important starting point in combating bacteria and diseases such as peritonitis.