Lightning is a natural electrical discharge that is caused by the buildup of positive and negative charges within a thundercloud. When the electrical charges become strong enough, they create a pathway for the lightning to travel from the cloud to the ground or from one cloud to another. This discharge of electricity creates a visible flash of light and a loud thunderclap. Lightning can also occur within a cloud or between a cloud and the air, and it is a powerful and potentially dangerous natural phenomenon.