Ozone is formed naturally in the atmosphere under the influence of electrical discharges (such as during thunderstorms) and by ultraviolet radiation with a wavelength below 240 nm in the upper layers of the atmosphere (the stratosphere).