Maintenance of genome integrity is an essential process in all organisms. Mechanisms avoiding the formation of DNA lesions or mutations are well described in animals because of their relevance to human health and cancer. In plants, they are of growing interest because DNA damage accumulation is increasingly recognized as one of the consequences of stress. Although the cellular response to DNA damage is mostly studied in response to genotoxic treatments, the main source of DNA lesions is cellular activity itself. This can occur through the production of reactive oxygen species as well as DNA processing mechanisms such as DNA replication or transcription and chromatin dynamics. In addition, how lesions are formed and repaired is greatly influenced by chromatin features and dynamics and by DNA and RNA metabolism. Notably, actively transcribed regions or replicating DNA, because they are less condensed and are sites of DNA processing, are more exposed to DNA damage. However, at the same time, a wealth of cellular mechanisms cooperate to favour DNA repair at these genomic loci. These intricate relationships that shape the distribution of mutations along the genome have been studied extensively in animals but much less in plants. In this Review, we summarize how chromatin dynamics influence lesion formation and DNA repair in plants, providing a comprehensive view of current knowledge and highlighting open questions with regard to what is known in other organisms.