When a photosensitizing agent is exposed to light, it absorbs energy and enters an excited state. This energy can then be transferred to cellular components or oxygen molecules, generating reactive oxygen species (ROS). These ROS can cause damage to cellular structures, leading to inflammation and other toxic effects.