DNA repair mechanisms maintain genomic stability by correcting DNA damage. Mutations in DNA repair genes can lead to the accumulation of genetic errors, increasing the risk of cancer. For example, mutations in the BRCA1 and BRCA2 genes impair the repair of double-strand DNA breaks, significantly raising the risk of breast and ovarian cancers.