BRCA1 and BRCA2 are genes that produce proteins responsible for repairing damaged DNA. These genes play a crucial role in maintaining the genetic material of cells. When either of these genes is mutated, it can lead to the development of cancer, particularly breast and ovarian cancers.