The study of how genetic sequences evolve over time and how that evolution has shaped the diversity of life.