•IL-22 absence during infection leads to less yeast titanization in the lungs. This evidence concerns the gene IL22 and infection.