Second near-infrared photothermal therapy (NIR-II PTT) has become a promising strategy for treating cancer in terms of safety and potency. However, the application of NIR-II PTT was limited in the treatment of deep-buried solid tumors due to the low dose of NIR-II absorption nanomaterials and the inadequate laser energy in the deep tumor. Herein, the authors report the engineering of NIR-II absorbing polyaniline nanorods, termed HPW@PANI Nanorods, for in situ NIR-II PTT based on optical fibers transmission of laser power and transarterial infusion for the treatment of orthotopic hepatocellular carcinoma in the rabbit. HPW@PANI Nanorods were prepared via chemical oxidant polymerization of aniline under phosphotungstic acid, which exhibited effective NIR-II absorption for hyperthermia ablation cells. HPW@PANI Nanorods were fast and efficiently deposited into primary orthotopic transplantation VX2 tumor in rabbits via transarterial infusion. Furthermore, an optical fiber was interventionally inserted into the primary VX2 tumor to transmit 1064nm laser energy for in situ NIR-II PTT, which could ablate primary tumor, inhibit distant tumor, and suppress peritoneal metastasis. This study provides new insights into the application of in situ NIR-II PTT based on optical fibers transmission of laser power and transarterial injection of NIR-II absorption nanomaterials to treat deep-buried tumors.