BRCA1 and BRCA2 are genes that produce proteins responsible for repairing damaged DNA. They play a crucial role in maintaining the integrity of genetic material within cells. When either of these genes is mutated, it can lead to an increased risk of developing certain cancers, most notably breast and ovarian cancer.