We show here that human lungs with active tuberculosis exhibit altered T-cell receptor/ITK signaling and that Itk deficiency impaired early protection against Mtb in mice, accompanied by defective development of IL-17A-producing γδ T cells in the lungs. Here, IL17A is linked to tuberculosis.