Our results demonstrate that CD40 costimulation by DCs plays an important role in generating antigen-specific Th17 cells and targeting the CD40-CD40L pathway represents a novel strategy to improve adaptive immunity to TB. This evidence concerns the gene CD40 and tuberculosis.