Most are the result of massive stars collapsing when they die. One short blast can emit more energy than our sun will over the course of its lifetime.