Phototoxicity occurs when a chemical becomes toxic upon exposure to light, particularly UV radiation. UV absorbing groups can play a direct role in this process. When a substance with such groups absorbs UV light, it can become excited and transfer energy to surrounding molecules, leading to cellular damage. This mechanism is often observed in photosensitizing agents, which are used in medical treatments like photodynamic therapy but can also pose risks in unintended exposures.