Gamma-ray bursts are extremely energetic explosions that release more energy in a second than our sun will in its entire lifetime. They are detected by spacecraft and last from milliseconds to hours. There are two main types - short bursts that last a few seconds and long bursts that can last over a minute. While most gamma-ray bursts originate from distant galaxies and are harmless, a nearby one could damage life on Earth by depleting the ozone layer. In 2017, gravitational waves and gamma rays were detected simultaneously for the first time, from a merging neutron star system.