Extreme heat and sudden air expansion is what causes thunder.