The BRCA1 and BRCA2 genes are part of a class of genes known as tumor suppressors. They are crucial for maintaining the genetic stability of cells and ensuring proper DNA repair. Mutations in these genes can lead to an increased risk of developing breast and ovarian cancers.