The defences that separate the contents of the gut from the rest of the body: the mucus layer, the cells lining the intestine and the junctions between them, and the associated immune system. The microbiome helps maintain this barrier, for example by producing butyrate.