The battery sends power to the coil. This makes a magnetic feild. There is another coil in this coil with smaller wires and many more windings of wire. When the first coil shuts its power down it induces a current in the small wired coil. It travels down the spark plug wires and releases all this built up energy in the form of light and heat from the spark.
Im sure many of you knew what an induced current was. But this was to get everyone on the same page for my point.
The sun has a solar flare. Sends it to earth with its iron magnetic core. When the flare is over it releases its power through light and heat in the form of northern lights and eathquakes/volcanoes.
This is my theory. What you think?