Answer:
Lightning is produced by the rapid transfer of free electrons when one of the following conditions exist:
One part of a cloud is positively charged and a neighboring part of the same cloud is negatively charged.
A positively charged cloud comes near a negatively charged cloud.
A cloud with either a positive charge or a negative charge comes near the earth.