Interleukin-22 (IL-22) is a critical cytokine for host immunity and barrier homeostasis during infection and inflammatory diseases. Here, IL22 is linked to infection.