A single molecule IMC-DAH-SQ can selectively recognize tumor cells with turn-on near infrared (NIR) fluorescence and function as an adaptive photosensitizer with photodynamic therapy activity.