Stellar evolution
Later, the red giant that was left over from a star like ours stops burning. A cloud of gas is given off and a smaller star called a white dwarf is left behind. After a really long time, the white dwarf cools down into a black dwarf.