What Causes Thunder and Lighting?

The cause of thunder and lightning is inside a thunderstorm warm air is rising and as it rises it cools and then falls. The friction caused by the rising and falling air creates a static charge. One the charge becomes large enough, it discharges as lightning. The lightning instantly heats the air around it and this causes the thunder.