The order of DNA methylation and histone modifications during transcription remained unclear. Here the authors show that HMGA2 induces DNA nicks at TGFB1-responsive genes, promoting nucleosome incorporation containing γ-H2AX, which is required for repair-mediated DNA demethylation and transcription.