The clinical applications of phototherapy nanomaterials are still limited due to concerns regarding their phototoxicity and efficacy. Herein, we report a novel type of D-π-A molecular backbone that induces type I/II photosensitivity and photodegradability by forming J-aggregates. The photodegradation rate can be regulated by changing the donor groups to regulate the photosensitivity of their aggregates because the photodegradability performance results from their oxidation by 1O2 generated by their type II photosensitivity. AID4 NPs possess faster photodegradation because of their better type I&II photosensitivity, which can also self-regulate by inhibiting type II and improving type I under hypoxic conditions. Moreover, they exhibited good photothermal and photoacoustic performance for improving their therapeutic effect by a synergistic effect and achieving photoacoustic imaging in vivo. The experimental result also showed that they can be effective for antibacterial and anti-tumor treatment and the photodegradation products of AID4 NPs possess low biological toxicity in the dark or under light. This study could provide a novel strategy for improving the safety and treatment effects of phototherapy.