A star glows for millions of years until the gases in its outer layer begin to cool, and the hydrogen in the inner core is slowly used up. The cool outer layer starts to glow red. When this happens the star is called a red giant. The red giant continues to lose its brightness until it fades away. Depending on its size, a red giant may die in an explosion, get compressed to form a black hole or become a white dwarf.