BRCA1 and BRCA2 are genes that produce proteins responsible for repairing damaged DNA. These genes are crucial for maintaining the genetic stability of cells. When either of these genes is mutated, the protein product is not made or does not function correctly, leading to an increased risk of cancer.