Lightning is just a very large spark, during a large storm, clouds can get VERY tall, and are full of water vapour and other gas particles, as the gas particles rise and fall in the cloud, they rub against each other and become charged through friction, eventually, negatively charged particles build up at the bottom of the cloud, when the number of electrons at the bottom of the cloud gets large enough, they discharge to the ground, we see this discharge as lightning