Thunder and lightning happen at the same time. Because of a discharge phenomenon between clouds with different charges or between clouds and the earth, when the distance between clouds with different charges decreases due to movement, the strong potential difference between positive and negative charges will break through the air and cause instantaneous discharge. The discharge spark generated during discharge is lightning, and the sound generated during discharge is thunder. See lightning before hearing thunder because light travels faster than sound.