Why is lightning accompanied by thunder?

            Lightning occurs when a massive electrical discharge takes place between two oppositely charged clouds or between a charged cloud and the ground. The charges develop in thunder clouds due to the friction of water droplets with air as the droplets move up and down with the rising and descending air currents within the cloud. During a bolt of lightning, thousands of amperes of electricity flows through the air in a fraction of a second. This rapidly heats up the air along its path which expands very fast producing shock waves which we hear as thunder. Although the lightning and thunder are produced at the same instant, we hear the thunder later because light travels faster than sound.