Artists' impressions of giant impact#s on the Earth. Some of these might cause a firestorm over the entire Earth, which burns up just about everything and makes most species extinct over the entire Earth. This is about the only likely thing that could make Earth momentarily uninhabitable by humans throughout its surface - and that just for a few hours during the firestorm. Anyone who survived, underground or beneath the sea, would find the surface of the Earth is still, by far, the most habitable place in the solar system and best place to "re-terraform".