There are two types of supernovae that originate from different stellar progenitors. Type I supernovae originate from white dwarfs that exceed the Chandrasekhar limit after accreting matter from a companion star. Type II supernovae originate from massive stars whose cores collapse into neutron stars after exhausting their nuclear fuel. Supernovae play an important role in generating elements heavier than iron through nuclear fusion and the r-process. For radiation from supernovae or gamma ray bursts to be dangerous to life on Earth, they would need to occur within 30 light years or 8,000 light years respectively. The nearest candidates are over 250 and 1 billion light years away.