Photoactivatable dyes operate by absorbing photons from a light source, which causes a change in their molecular structure. This change results in either the activation of fluorescence or an increase in fluorescence intensity. The dyes can be activated using either ultraviolet (UV) light or visible light, depending on their specific chemical properties. Common examples include fluorescein, rhodamine, and cyanine dyes.