A supernova explodes when a high-mass star reaches the end of its life cycle. Depending on the mass of the core, the collapse of the star’s core can result in the production of a black hole or a neutron star. These incredibly dense objects are what’s left over from huge stars that went supernova.