In about 5 billion years, the Sun will run out of hydrogen fuel and expand into a red giant. As it grows, it will engulf Mercury, Venus, and possibly Earth. Even if our planet survives, the intense heat will boil away the oceans and strip the atmosphere. Eventually, the Sun will shed its outer layers and shrink into a white dwarf—a glowing ember of its former self.