Thunder is basically the expansion of air that surrounds the lightning bolt’s path. As light travels very fast – around 186,282 miles per second – the heated air inside the clouds doesn’t get time to expand; thus, it gets compressed and raises the pressure and temperature. This creates rapid expansion, which produces sonic shock waves that result in thunder.