Photocatalytic reduction of 4-nitrophenol (4-NP) for converting it to nontoxic 4-aminophenol (4-AP) is one of the most efficient approaches for removing toxic 4-NP. Using porous organic polymers (POPs) as the support to immobilize noble metal catalysts has exhibited remarkable reduction performance but is rarely reported. Herein, a cationic triphenylamine-based POP was synthesized by quaternization to immobilize PtCl62- to prepare an efficient photocatalyst named DCM-TPA-Pt for the reduction of 4-NP to 4-AP in the presence of NaBH4. Different from reported methods which realize immobilization by doping or complexing, the support and PtCl62- are combined through electrostatic interaction with milder reaction conditions to produce a photocatalyst in this work. DCM-TPA-Pt shows excellent photocatalytic reduction performance, reaching 99.9% conversion within 3 min, and its pseudo-first-order constant is 0.0305 s-1, surpassing most of the reported photocatalysts. Moreover, DCM-TPA-Pt also exhibits equal reduction efficiency after five continuous cycles, which highlights its potential utilization in practical applications.