A supernova is the explosive death of a star that occurs when a star exhausts its nuclear fuel and collapses under its own gravity, causing a massive explosion. This explosion can outshine an entire galaxy for a short period and disperses heavy elements into space.