Ozone is formed from electrical discharges or ultraviolet light acting on O2.