Two efficient photosensitizers (PSs) with aggregation-induced emission characteristics were designed and synthesized for specific lysosome-targeted photodynamic therapy (PDT). Both PSs efficiently discriminated Gram-positive bacteria from Gram-negative bacteria and killed Gram-positive bacteria through the PDT effect.