Importantly, we found that IL-22 was crucial to restrict effector T cell responses, and contributed to the impediment of viral elimination in the liver and lymphoid organs during acute and persistent viral infections. Here, IL22 is linked to viral infectious disease.