In this review, we discuss how two evolutionarily conserved pathways at the interface of DNA replication and repair, template switching and break-induced replication, lead to the deleterious large-scale expansion of trinucleotide DNA repeats that cause numerous hereditary diseases. We highlight that these pathways, which originated in prokaryotes, may be subsequently hijacked to maintain long DNA microsatellites in eukaryotes. We suggest that the negative mutagenic outcomes of these pathways, exemplified by repeat expansion diseases, are likely outweighed by their positive role in maintaining functional repetitive regions of the genome such as telomeres and centromeres.