Optical imaging is not only used for diagnosis but also plays a crucial role in treatment. Techniques such as fluorescence-guided surgery help surgeons identify and remove cancerous tissues more precisely. Additionally, photodynamic therapy uses light-activated drugs to target and kill cancer cells.