The Sun will become a white dwarf in about 10 billion years when it runs out of hydrogen fuel in its core.