Many chemical changes can be brought about by light. Indeed, the whole science of photography, and the working of our own eyes is based on light-induced chemical changes. Some changes, like the burning of our skin in strong sunlight, are unwelcome and dangerous, so chemical protection has to come to the rescue!
The most dangerous part of sunlight is the short wavelength, invisible, ultraviolet light which is radiated in addition to visible light by very hot bodies. This radiation converts oxygen (O2), high up in the atmosphere, into ozone (O3) which absorbs ultraviolet light strongly. When the unstable ozone reverts to normal oxygen, ultraviolet light can convert it back to ozone again.
Gases released into the atmosphere, especially freons used in refrigerators, are now interfering with this mechanism, so more ultraviolet light gets down to the earth's surface and the need for skin protection is increasing.