The life of a star, from cloud to white dwarf or black hole

Stars are not forever. They are born, they shine for millions or billions of years, and they end. How a star ends depends mostly on how much mass it has.
1. Birth in a cloud
Stars form in large clouds of gas and dust called molecular clouds. The Orion Nebula and the Eagle Nebula are clouds where new stars are being born today.
2. A long, steady life
In a star's core, hydrogen nuclei are squeezed together to form helium. This nuclear fusion releases the energy that makes the star shine. A star doing this steadily is on the main sequence. Our Sun, about 4.6 billion years old, is roughly halfway through this stage.
3a. Sun-like stars: red giant, planetary nebula, white dwarf
Late in its life, a star like the Sun swells up: it becomes a red giant. In about 5 billion years the Sun will do this and may swallow Mercury, Venus and possibly Earth. Then the star blows off its outer layers as an expanding cloud of gas and dust called a planetary nebula, like the Ring Nebula or the Dumbbell Nebula. What is left is a white dwarf, a stellar cinder roughly the size of Earth.
3b. Massive stars: supernova
A much more massive star ends in a huge explosion called a supernova. Its core survives as an incredibly dense remnant: a neutron star or a black hole. The Crab Nebula is the wreckage of a supernova seen from Earth in 1054.
See every stage
In the game you capture all of these with a telescope: a star nursery, a planetary nebula, a supernova remnant. In Sky school, the lesson "The life of a star" asks the key questions and brings them back until you know them.
Orion Nebula
Dumbbell Nebula
Crab Nebula