Although IL-17 and TH17 cells can cause inflammation and damage the intestinal mucosa, IL-17 and IL-22 also play a protective role in limiting intestinal fungal and bacterial infections. Here, IL22 is linked to bacterial infectious disease.