A facile strategy based on the amidation reaction of anhydride and NH(2) group in carbon nitride polymer is developed to synthesize a new polymeric photocatalyst which responds to visible-light. The high photocatalytic activity may be due to the coupling anhydride groups promoting the separation of the photoinduced electrons and holes.