Our findings demonstrate that availability of IL-7 alone is not sufficient to promote protective T-cell immunity against tuberculosis. Here, IL7 is linked to tuberculosis.