BRCA1 and BRCA2 are genes that produce proteins responsible for repairing damaged DNA. When either of these genes is mutated, DNA damage may not be repaired properly, leading to an increased risk of certain cancers. These mutations can be inherited and significantly raise the risk of breast and ovarian cancers, among others.