Thunder is just the sound lightning makes. Light travels faster than sound, so we see the lightning before we hear the thunder.