SARS-CoV-2-specific CD4+ and CD8+ TRM cells were present in the lungs up to 10 months post infection, and the transcriptome of these cells differed from peripheral blood T cells. Here, CD4 is linked to infection.