Defective DNA repair can be caused by mutations in genes responsible for the repair processes. For example, mutations in the BRCA1 and BRCA2 genes are linked to a significantly higher risk of breast and ovarian cancers due to impaired homologous recombination. Environmental factors such as exposure to UV light, radiation, and certain chemicals can also damage DNA and overwhelm repair mechanisms, leading to defects.