When microbes penetrate the protective mucus layer that covers the lining of the gut, the molecules of their cell walls trigger the activation of immune cells beneath the gut lining, which then tailor the immune response depending on whether, or to what degree, the microbe poses a danger.

