Lightning is a natural phenomenon that occurs when there is a sudden and violent discharge of electrical charges in the atmosphere. Lightning often occurs during thunderstorms, where the electrical charges are generated in the clouds due to the friction of water droplets and ice crystals against each other.