What Causes Lightning and Thunder?

Lightning is created by an electrical discharge causing a huge spark (flash of light). Ice and water form in clouds creating an electrical buildup. Lightning balances this electrical buildup. Lightning increases the air temperature very quickly causing a shock wave that ultimately turns into a sound wave (thunder).