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. Here, NCAM1 is linked to rectal cancer.