Answer :

The temperature of the air in the lightning channel may reach as high as 50,000 degrees Fahrenheit, 5 times hotter than the surface of the sun. Immediately after the flash, the air cools and contracts quickly. This rapid expansion and contraction creates the sound wave that we hear as thunder.