The study of the evolutionary relationships between species, based on comparisons of DNA or other shared traits.