We report a novel nanophotosensitizer via one-step covalent assembly of dopamine and genipin. This is the first report unveiling the photodynamic effect of dopamine-based materials. These nanophotosensitizers can also act as pH-responsive drug nanocarriers via a catechol-boronate linkage, thus achieving combined PDT and chemotherapy for highly efficient cancer treatment.