Thunder is the sound produced when lightning rapidly heats surrounding air, causing explosive expansion and shock waves. It can be heard up to 10 miles away.