>>13671472Lightning occurs when two areas of electrostatic energy, one atmospheric and one ground, become equal in state and therefore lightning will find the quickest path toward the ground. Thunder is the shockwave from nearly a gigajoule of energy being released instantly.