The differences in DNA sequences that occur within and between species and the mechanisms driving them.