Answer by
willard (874)
Lightning is caused when a layer of clouds becomes electrically charged. When the charge is large enough, it creates an electric field large enough make regions of the surrounding air conduct.
When this happens, negative charges in the clouds move quickly to earth, heating the air until it glows.