Prehistoric people thought that thunder was the sound of the gods roaring in anger. Today we know that thunder is caused by the violent expansion of air that has been heated by lightning. Air is heated instantly when an electric charge of lighting passes through it. The heat causes the molecules of air to expand, or fly out, in all directions. As the molecules seek more room, they collide violently with layers of cool air, and set up a great air wave that has the sound of thunder.
Thunder has many different sounds.
The deep rumbling roar of thunder is caused by the air wave from the lightning trunk that is farthest away. The sharp crackle of thunder is set up when the large trunk of lighting forks out into many branches. The loud crash of thunder is cause by a main trunk that is near the observer. Lightning occurs in a variety of forms. Also, a single flash of lightning often varies in appearance, depending on the position of an observer in relation to it.