Thunderstorms form when warm, humid air rises rapidly due to heating from the sun's surface or being pushed upward by cold fronts or wind. As the warm air rises and cools, the water vapor condenses to form droplets in clouds. The droplets grow heavy and fall as rain, pulling cool air with it. Negative electric charges build up in the cloud bottom and discharge as lightning through extremely hot air, producing the sound waves we hear as thunder.