For thunder to occur the heat around the environment increases causing the gas particles to move more quicker. As the particles increase in speed the chance of them colliding is higher, and once they collide it causes a sound known as thumder to be produced.