Photosynthesis of H 2 O 2 from seawater represents a promising pathway to acquire H 2 O 2 , but it is still restricted by the lack of a highly active photocatalyst. In this work, we propose a convenient strategy of regulating the number of benzene rings to boost the catalytic activity of materials. This is demonstrated by ECUT-COF-31 with adding two benzene rings as the connector, which can result in 1.7-fold enhancement in the H 2 O 2 production rate relative to ECUT-COF-30 with just one benzene ring as the connector. The reason for enhancement is mainly due to the release of *OOH from the surface of catalyst and the final formation of H 2 O 2 being easier in ECUT-COF-31 than in ECUT-COF-30. Moreover, ECUT-COF-31 provides a stable photogeneration of H 2 O 2 for 70 h, and a theoretically remarkable H 2 O 2 production of 58.7 mmol per day from seawater using one gram of photocatalyst, while the cost of the used raw material is as low as 0.24 $/g.