Dual functionalized natural biomass carbon dots from lychee exocarp were fabricated for cancer cell targetable near-infrared fluorescence imaging and photodynamic therapy.