A lightning bolt is several times hotter than the surface of the Sun.
A single bolt rapidly heats the channel of air it travels through to roughly 30,000 kelvin — about five times the temperature of the visible surface of the Sun, which sits near 5,800 K. The thunder you hear is the resulting shockwave of superheated air expanding outward at supersonic speed.