Viruses evolve rapidly through mutation and selection. Phylogenetics uses genetic sequences and evolutionary models to construct phylogenetic trees that trace the evolutionary relationships between organisms and can be used to date their common ancestors. Key developments in phylogenetics include faster sequencing allowing whole genome trees, improved evolutionary models accounting for different mutation types, and using Bayesian analysis via Markov chain Monte Carlo sampling to average over tree space and obtain posterior probability distributions of trees and parameters like mutation rates and dates. Software like BEAST performs Bayesian phylogenetic analysis on sequence data using strict or relaxed molecular clock models to simultaneously estimate phylogenies and dates of common ancestors.