In cancer diagnosis, DNA profiling helps to identify specific genetic markers associated with different types of cancer. By analyzing the DNA from cancer cells, healthcare providers can determine the presence of mutations in genes such as BRCA1 and BRCA2, which are linked to breast and ovarian cancers. These genetic markers can guide the development of personalized treatment plans, improving the efficacy of targeted therapies.