Normally, the BRCA1 and BRCA2 genes protect you from getting certain cancers. But some mutations in the BRCA1 and BRCA2 genes prevent them from working properly, so that if you inherit one of these mutations, you are more likely to get breast, ovarian, and other cancers.