To assess the association between tumor-infiltrating lymphocytes (TILs) in ductal carcinoma in situ (DCIS) samples and disease recurrence. This retrospective cohort study included women aged 18years and older who underwent treatment between January 2007 and December 2020. Male patients, individuals diagnosed with invasive or microinvasive disease based on anatomopathological examination of surgical specimens, and those with a personal history of any other cancers were excluded. Additionally, the presence of "touching TILs" (lymphocytes in direct contact with tumor cells) and periductal desmoplasia were evaluated as complementary methods to represent the immunological microenvironment. The primary outcome was relapse-free survival based on TIL quantification adjusted for potential confounders. Pathologists assessed TILs in the sample with the highest tumor representation and quantified them as a percentage. Survival was evaluated using Kaplan‒Meier curves, log-rank tests, and Cox regression models. A total of 191 patients met the eligibility criteria. The mean follow-up duration was 77.2months, with a recurrence rate of 9.2%. Patients with TILs ≥ 17% had a greater risk of recurrence (HR 2.97, 95% CI 1.17-7.51; p = 0.02). Additionally, focal necrosis (HR 6.4, 95% CI 1.39-34.71; p = 0.018) or comedonecrosis (HR 4.53, 95% CI 1.34-15.28; p = 0.015) were associated with increased recurrence risk. According to the multivariate model, comedonecrosis and TILs ≥ 17% were significantly associated with recurrence (p = 0.034 and p = 0.035, respectively). Regarding the evaluations of "touching TILs" and periductal desmoplasia, no statistical significance was found when assessing their association with disease recurrence. In our cohort, a high percentage of TILs (≥ 17%) and the presence of comedonecrosis were independently associated with DCIS recurrence.