Th22 cells are an important source of IL-22 for host protection against enteropathogenic bacteria.