Infection increased the abundance of an enterocyte subtype with high expression of defense-associated functions and stimulated production of IL22, a cytokine linked to epithelial integrity, from group 3 innate lymphoid cells. Here, IL22 is linked to infection.