 A comet is on a course to collide with Earth, and people must cope with the fact that they will die. The President (Morgan Freeman) has devised a plan to keep as many humans alive as possible. Scientists have built giant caves big enough to hold a million people, and the government is going to have a lottery to pick 800,000 people to live in the caves along with 200,000 scientists, artists and doctors.