Solar flares involve a release of the Sun's magnetic energy as X-radiation, particle beams and high-speed plasma flows. But we have discovered, using data from the Solar and Heliospheric Observatory (SOHO), that these flares also affect the Sun's interior, generating seismic waves similar to earthquakes. For example, a three-kilometre-high seismic wave was caused by a moderate X-ray flare that occurred on 9 July 1996 and propagated at about 50 kilometres per second to a distance 120,000 kilometres from the flare site.