Macroevolution examines evolution over long time periods of thousands to millions of years. It studies changes above the species level, including the emergence of new species through speciation and loss of species through extinction. Key areas of study in macroevolution include building phylogenetic trees to demonstrate evolutionary relationships between extinct and modern species based on morphological comparisons, and using molecular analysis to help validate these relationships when possible. Mass extinctions that eliminate large percentages of species are also investigated to better understand causes and patterns of extinction and subsequent radiations as new species evolve to fill open niches.