Thunder is caused by LIGHTNING, which is essentially a stream of electrons flowing between or within clouds, or between a cloud and the ground. The air surrounding the ELECTRON stream is heated to as hot as 50,000 degrees Farhenheit, which is three times HOTTER than the surface of the sun.