Huge amounts of energy are released during solar flares, which can be spectacular events.