Every few million years, the Earth tends to be wiped clear of almost all life in a globally catastrophic event.