The two main causes of variation are "mutation" and "genetic recombination".
A mutation is a change in the DNA sequence of an organism. Mutations can result from errors in DNA replication during cell division, exposure to mutagens or a viral infection.
Genetic recombination refers to the rearrangement of DNA sequences by the breakage and rejoining of chromosomes or chromosome segments.