A bolt of lightning is hotter than the surface of the Sun. Lightning can heat the air around it to temperatures of about 30,000 degrees Celsius (54,000 degrees Fahrenheit), which is five times hotter than the surface of the Sun.
This intense heat causes the surrounding air to rapidly expand and create the thunderclap we hear during a thunderstorm.