Trilobites saw incredible diversification over time. For such a long-lasting group of animals, it is no surprise that trilobite evolutionary history is marked by a number of extinction events where some groups perished and surviving groups diversified to fill ecological niches with comparable or unique adaptations. Generally, trilobites maintained high diversity levels throughout the Cambrian and Ordovician periods before entering a drawn-out decline in the Devonian, culminating in the final extinction of the last few survivors at the end of the Permian period.