Mass extinctions are often followed by a burst of speciation among the surviving taxa, driven by ecological changes that restructure ecosystems and set new evolutionary paths. Early mammals survived the dominance of dinosaurs due to key adaptations such as living in burrows or aquatic environments, which protected them from catastrophic impacts. Their dietary diversity may have also contributed to their survival in the aftermath of extinction events.