These agents work by absorbing UV radiation and transferring the energy to surrounding molecules, leading to the generation of reactive oxygen species (ROS) or free radicals. This process can cause cellular damage, inflammation, and in some cases, the formation of skin lesions. The chemical structure of photosensitizing agents allows them to interact with UV light, making them potent mediators of these reactions.