In rectal cancer tissues before radiotherapy, higher densities of CD4+ TIL, CD8+ TIL, and CD56+ TIL were associated with a greater proportion of patients achieving TRG0, TRG1, and TRG2 grades, while fewer patients exhibited TRG3. The gene discussed is CD4; the disease is rectal cancer.