T cells, but not innate lymphoid cells, have an indispensable role in sustaining the IL-22 signalling that is required for the protection of colonic crypts against invasion during infection by the enteropathogen Citrobacter rodentium4 (Cr). This evidence concerns the gene IL22 and infection.