They aren't alternative spellings of the same word. They're two different words with two different meanings. Lightning, a noun, is the natural phenomenon usually accompanied by thunder. Lightening is the gerund or present participle of the verb "to lighten" (to become lighter or to make something lighter).