Lightning forms when there are big storm clouds in the sky and the inside of the clouds get very charged, or electrified. This causes a big spark to jump between different parts of the cloud, or between the cloud and the ground, and that spark is what we see as lightning.