During the development of a thunderstorm, the air currents move upward while the water droplets move downward. These vigorous movements cause separation of charges. By a process, the positive charges collect near the upper edges of the clouds and the negative charges accumulate near the lower edges. There is accumulation of positive near the ground also.
When the magnitude of the accumulated charges becomes very large, the air which is normally a poor conductor of electricity, is no longer able to resist their flow. Finally negative and positive charges meet, producing streaks of bright light and sound called lightning and thunderstorm respectively. This process is known as electric discharge. This can occur between two or more clouds, or between clouds and the earth.