BackgroundPhotothermal therapy (PTT) in the second near-infrared (NIR-II) window has attracted extensive attention due to the benefits in high maximum permissible exposure and penetration depth. Current photothermal agents generally show a broadband absorption accompanied by a gradual attenuation of absorption in the NIR-II window, leading to poor effect of PTT. It remains a great challenge to gain photothermal agents with strong and characteristic absorption in NIR-II regions. To overcome this problem, based on carbon dots (CDs)-mediated growth strategy, we proposed a simple and feasible approach to prepare plasmonic gold nanodendrites (AuNDs) with NIR-II absorption to enhance the therapeutic effect of PTT.ResultsBy rationally regulating the size and branch length of AuNDs, the AuNDs exhibited a broadband absorption from 300 to 1350 nm, with two characteristic absorption peaks located at 1077 and 1265 nm. The AuNDs demonstrated desired optical photothermal conversion efficiency (38.0%), which was further applied in NIR-II photoacoustic imaging (PAI) and PTT in human colon cancer cells (HCT 116)-tumor-bearing mice model. The tumor cells could be effectively eliminated in vivo under 1064 nm laser irradiation by the guidance of PAI.ConclusionsWe reported a simple but powerful synthetic method to obtain the unique AuNDs with strong and characteristic absorption peaks in the NIR-II window. This study provides a promising solution to tuning the growth of nanoparticles for bioimaging and phototherapy in the NIR-II window.Graphical AbstractSupplementary InformationThe online version contains supplementary material available at 10.1186/s12951-023-01887-2.