Genetic diversity arises through a variety of mechanisms, including mutations, chromosomal alterations, and epigenetic changes. As cancer cells proliferate, errors in DNA replication can lead to mutations. Additionally, exposure to environmental factors such as radiation or carcinogens can induce genetic changes. The genetic instability inherent in cancer cells often leads to further mutations, creating a heterogeneous population of cells within a single tumor.