Therefore, despite STAT3 expression in T cells is required for Th17 differentiation, STAT3 in APCs hampers secretion of Th17 promoting cytokines and the secretion of IL-17 by mycobacteria-specific T cells and reduces the resistance of mice to infection with M. tuberculosis. This evidence concerns the gene IL17A and infection.