Mycobacteria-specific resident memory CD4 and CD8 T cells (TRM) expressing PD-1 accumulated in the lung after aerosol infection and intratracheal (i.t.)-but not subcutaneous (s.c.)- BCG immunization. Here, CD4 is linked to infection.