Mutations can lead to cancer by activating oncogenes, which promote cell growth and division, or by inactivating tumor suppressor genes, which normally inhibit cell proliferation and induce apoptosis. Understanding these mutations is essential for developing targeted therapies.