Lightning forms when strong updrafts in towering cumulonimbus clouds force molecules to collide, creating an electric charge. Lightning rapidly heats a narrow channel of air to temperatures as high as 54,000 degrees, which prompts the emission of light and a crack of thunder as super-heated air expands rapidly, producing shockwaves.