Genetic factors play a crucial role in cancer. Certain genetic mutations can increase the risk of developing specific types of cancer. For instance, mutations in the BRCA1 and BRCA2 genes are well-known to elevate the risk for breast and ovarian cancers. Additionally, genetic variability can affect how well a person responds to treatments. Targeted therapies are often designed to exploit specific genetic abnormalities found in cancer cells.