Lightning is a visible discharge of electricity that occurs when a cloud acquires an excessive positive or negative charge.