A turn-on optoacoustic and NIR-II fluorescent probe for imaging antituberculotic drug-induced liver injury has been developed. Probe TC-H2O2 responds to hepatic H2O2, thus releasing chromophore TC-NN, which displays prominent NIR-II fluorescence and optoacoustic signals for diagnosing liver injury.