Optical targeting is primarily used in photothermal therapy and photodynamic therapy for cancer treatment. In photothermal therapy, light-activated nanoparticles generate heat to kill cancer cells. In photodynamic therapy, light activates photosensitizers to produce reactive oxygen species, resulting in cell death. This technique is also explored in bioimaging for enhanced visualization of biological structures.