Lightning is a natural electrical discharge produced in the atmosphere or within the earth. It results from the buildup of positive and negative charges within a thunderstorm. When the buildup becomes strong enough, a lightning bolt occurs as the atmosphere tries to regain neutrality.