Stars don’t shine forever. Eventually, even the brightest stars run out of fuel and collapse in a massive explosion, called a supernova.
We usually know that supernovae have happened in the past because history is full of the stories people tell about them.