Dear student,
When high-energy ultraviolet rays strike ordinary oxygen molecules (O2), they split the molecule into two single oxygen atoms, known as atomic oxygen. A freed oxygen atom then combines with another oxygen molecule to form a molecule of ozone . Thus it is a chemical change.
Regards