By combining the precisely sized cavity of pillar[5]arene and photodynamic properties of porphyrin derivatives, novel COMs (P5COMs) as an efficient cancer therapy platform from aldehyde-modified pillar[5]arene (P5CHO) and tetra-(4-aminophenyl)porphyrin (TAPP) were fabricated successfully.