A photon of UV "light" hits an oxygen molecule. The energy from the photon breaks the molecule apart. It becomes two separate oxygen atoms. This is an example of photodissociation.
Images courtesy COMET.