A scientific explanation of how, millions of years from now, the life of the Earth could conceivably end.