How is ozone made in the atmosphere?
Ultraviolet radiation from the sun interacting with oxygen molecules.
Molecular oxygen contains 2 atoms. When they are struck by ultraviolet light from the sun they will split into individual atoms. When one of those individual atoms joins with a oxygen molecule (2 oxygen atoms) you get ozone, or
There is a little more going on but I think this should answer your question.