Hyperbranched supramolecular polymers were obtained by mixing a naphthyl-substituted porphyrin derivative and cucurbit[8]uril in aqueous solution, which was driven by host–guest interactions. The formation of a supramolecular polymeric structure can cause disruption of the porphyrin aggregation, thus leading to enhancement of their 1O2-generation efficiency.