Here the authors show that chronic antigenic stimulation in both tumour and infection models induces the expression of EGR2, which drives and stabilises exhausted cell epigenetic and transcriptional identity. The gene discussed is EGR2; the disease is neoplasm.