Thunder is caused by lightning.
When a lightning bolt travels from the cloud to the ground it actually opens up a little hole in the air, called a channel.
Once then light is gone the air collapses back in and creates a sound wave that we hear as thunder.
The reason we see lightning before we hear thunder is because light travels faster than sound!
Allentown, PA 18102