Tissue-resident memory T cells (TRM) maintain immunity in diverse sites as determined in mouse models, whereas their establishment and role in human tissues have been difficult to assess. Here, we investigated human lung TRMgeneration, maintenance, and function in airway samples obtained longitudinally from human leukocyte antigen (HLA)–disparate lung transplant recipients, where donor and recipient T cells could be localized and tracked over time. Donor T cells persist specifically in the lungs (and not blood) of transplant recipients and express high levels of TRM signature markers including CD69, CD103, and CD49a, whereas lung-infiltrating recipient T cells gradually acquire TRM phenotypes over months in vivo. Single-cell transcriptome profiling of airway T cells reveals that donor T cells comprise two TRM-like subsets with varying levels of expression of TRM-associated genes, whereas recipient T cells comprised non-TRM and similar TRM-like subpopulations, suggesting de novo TRM generation. Transplant recipients exhibiting higher frequencies of persisting donor TRM experienced fewer adverse clinical events such as primary graft dysfunction and acute cellular rejection compared with recipients with low donor TRM persistence, suggesting that monitoring TRM dynamics could be clinically informative. Together, our results provide spatial and temporal insights into how human TRM develop, function, persist, and affect tissue integrity within the complexities of lung transplantation.