Stars don’t always shine. At one point, they run out of gas to make energy and die. This can cause unique events like a red giant, supernova, and even a black hole.
When a star is dying, it swells up and becomes a red giant. If our sun was dying, it would become a red giant that could swallow up Mercury, Venus, and perhaps Earth. A star gets 100 times bigger when it becomes a red giant. It will then shrink 100 times smaller later.
A supernova is an explosion that releases gas, which can cause a black hole. This can be scary because nothing close to the black hole can escape the gravity sucking them in. The good news is that black holes are 7,300 light years away from us, so we are safe for now.
[Source: Death of a Star]