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. Here, CD40LG is linked to tuberculosis.