SummaryTissue‐resident memory T (TRM) cells are CD8+ T lymphocytes that reside in the tissues, including tumours. This T cell subset possesses a magnitude of cytotoxicity, but its epigenetic regulation has not been studied. Here, we investigate the impact of perforin DNA methylation in TRM cells and correlate it with their functional potential. Fifty‐three urothelial urinary bladder cancer (UBC) patients were recruited prospectively. The DNA methylation status of the perforin gene (PRF1) locus in TRM cells was investigated by pyrosequencing. Flow cytometry with ViSNE analysis and in‐vitro stimulation were used to evaluate TRM cell phenotypes. We discovered that tumour TRM cells have low DNA methylation in the PRF1 locus (32·9% methylation), which corresponds to increased numbers of perforin‐expressing TRM cells. Surprisingly, programmed cell death 1 (PD‐1) expression is high in tumour TRM cells, suggesting exhaustion. Following interleukin‐15 and T cell receptor stimulation, perforin and T‐bet expressions are enhanced, indicating that TRM cells from tumours are not terminally exhausted. Moreover, a high number of TRM cells infiltrating the tumours corresponds to lower tumour stage in patients. In conclusion, TRM cells from UBC tumours are epigenetically cytotoxic with signs of exhaustion. This finding identifies TRM cells as potential new targets for cancer immunotherapy.