Macroevolution refers to large-scale evolutionary changes that occur over long periods of time and result in new taxonomic groups. It encompasses trends like the origin of mammals and the diversification of flowering plants. Speciation, the origin of new species, can occur through anagenesis, where a population accumulates traits to become a new species, or cladogenesis, where branching evolution creates a new species from an ancestral line. Speciation is driven by the emergence of reproductive barriers between populations, either before or after zygote formation.