I realize that almost everyone knows how lightning is formed, and that it can originate from the ground and jump up to the clouds

but for those who don't know that and want to know all about lightning, read this page:
http://en.wikipedia.org/wiki/Lightning#How_it_is_formed