During the immune response to infection, IL-22 and IL-17A are often produced concurrently and at high levels in inflamed tissues. Here, IL22 is linked to infection.