Yet Life Always Comes Back And Thrives

Somehow on planet earth, conditions always seem to stabilize enough for life to re-emerge. Some species have survived mass extinctions (though we would all be grateful if cockroaches would finally die out) and come back to dominate the planet.
One such example is mammals, which existed in small and insignificant numbers during the days of the dinosaurs. When the dinosaurs died out, some mammals survived and went on to dominate the planet. Had the dinosaurs not died out, reptiles would still be dominant, and humans may have never come into existence.