Dual donor-acceptor covalent organic frameworks for hydrogen peroxide photosynthesis

Constructing photocatalytically active and stable covalent organic frameworks containing both oxidative and reductive reaction centers remain a challenge. In this study, benzotrithiophene-based covalent organic frameworks with spatially separated redox centers are rationally designed for the photocatalytic production of hydrogen peroxide from water and oxygen without sacrificial agents. The triazine-containing framework demonstrates high selectivity for H2O2 photogeneration, with a yield rate of 2111 μM h−1 (21.11 μmol h−1 and 1407 μmol g−1 h−1) and a solar-to-chemical conversion efficiency of 0.296%. Codirectional charge transfer and large energetic differences between linkages and linkers are verified in the double donor-acceptor structures of periodic frameworks. The active sites are mainly concentrated on the electron-acceptor fragments near the imine bond, which regulate the electron distribution of adjacent carbon atoms to optimally reduce the Gibbs free energy of O2* and OOH* intermediates during the formation of H2O2.

Constructing photocatalytically active and stable covalent organic frameworks containing both oxidative and reductive reaction centers remain a challenge.In this study, benzotrithiophene-based covalent organic frameworks with spatially separated redox centers are rationally designed for the photocatalytic production of hydrogen peroxide from water and oxygen without sacrificial agents.The triazine-containing framework demonstrates high selectivity for H 2 O 2 photogeneration, with a yield rate of 2111 μM h −1 (21.11 μmol h −1 and 1407 μmol g −1 h −1 ) and a solar-to-chemical conversion efficiency of 0.296%.Codirectional charge transfer and large energetic differences between linkages and linkers are verified in the double donor-acceptor structures of periodic frameworks.The active sites are mainly concentrated on the electron-acceptor fragments near the imine bond, which regulate the electron distribution of adjacent carbon atoms to optimally reduce the Gibbs free energy of O 2 * and OOH* intermediates during the formation of H 2 O 2 .
A promising path towards a sustainable future is utilizing solar energy to create chemical fuels, such as hydrogen peroxide (H 2 O 2 ), which can be stored and transported [1][2][3] .Currently, H 2 O 2 is manufactured by an energy-intensive and indirect anthraquinone technique 4 , which involves safety issues caused by mixed H 2 /O 2 and produce toxic byproducts 5,6 .Although artificial synthesis of H 2 O 2 using semiconductor-based photocatalysis is an alternative method, the low activity of photocatalysts in pure water and heavy dependence on various sacrificial agents need to be urgently solved 7,8 .In terms of sacrificial agents, the introduction of alcohol leads to additional consumption of valuable chemicals, and the resulting aldehydes disfavor the separation of H 2 O 2 .Continuous charging with oxygen in photocatalytic systems under dark reaction adds an additional source of energy to the consumption.Much effort has been devoted to developing sacrificial agent-free, energy-saving, and direct processes H 2 O 2 production.
In principle, the H 2 O 2 photosynthesis pathway consists of two complementary half-reactions, that is, O 2 /H 2 O 2 (two electrons) and H 2 O/H 2 O 2 (two holes) 3,9 .Most oxidation centers (i.e., hole species) can only undergo four-electron oxidation of water to oxygen (4e − WOR) due to thermodynamically favorable reactions rather than direct twoelectron oxidation of water to H 2 O 2 (2e − WOR).The former has an atomic utilization efficiency of only 68%, while the latter reaches 100% 7 .If both halves occur at the same/adjacent sites, the efficiency of the reaction is extremely limited by charge recombination.Therefore, direct evolution of H 2 O 2 through a two-electron reaction involving separate oxygen reduction and water oxidation by respective photoinduced electrons and holes provides an ideal routine.Functional motifs with accessible channels and spatially separated redox species in the photocatalytic system that can facilitate the mass transfer and selective formation of H 2 O 2 intermediates in the two-electron pathway are highly desirable.
Covalent organic frameworks (COFs), a type of crystalline and nonmetallic polymers, have become feasible and promising platforms in the field of artificial photosynthesis due to their porous structure, photoelectric properties, and photochemical stability [10][11][12] .The structural tunability and regularity of COFs, which is easily realized by practical building blocks with abundant topologies and dimensionalities, endow broad optical absorption, favorable mass transfer and fast charge carrier mobility [13][14][15] .However, COFs are rarely used as photocatalysts for H 2 O 2 production.Voort et al. reported two COFs based on a (diarylamino)benzene linker for H 2 O 2 production, and subsequently vinyl, fluorinated and Ti-based COFs were used to catalyze H 2 O 2 production [16][17][18][19][20] .Most of these reports require sacrificial agents or oxygen bubbling during the reactions.Thiophene is a stable πaromatic five-membered ring compound, and due to the aromatic rings, electroactive and solubilizing groups can be introduced at each alpha or beta site, with excellent conductivity and adjustable electron density 21,22 .The combination of COFs and thiophene motifs is a popular trend in various fields, including ion batteries, hydrogen production, carbon dioxide reduction and organic synthesis [23][24][25] .It was reported that the pentacyclic thiophene-S functional motif in JUC-527 and JUC-528 acted as the active center for the electronic oxygen reduction reaction (ORR), and more thiophene-S (one thiophene-S and bi-thiophene-S) structures enabled higher ORR efficiency 26 .However, utilizing thiophene-based COFs to produce H 2 O 2 through molecular engineering and mechanistic investigation remain challenge.Functional thiophene motifs can not only be preassembled to easily construct donor-acceptor COFs, but also differ in the transport direction and dissipation of excited charge carriers in the presence of polarized imine linkage.It also provides a paradigm and indicate how the pushpull effects between intramolecular motifs and linkage chemistry in polymers affords high catalytic efficiency.Considering the n-π* transition of the long pairs on sulfur and suitable molecular orbital occupancy, precisely placing independent oxidation and reduction centers in an ordered manner based on thiophene-COFs may be more accessible for photocatalytic H 2 O 2 production.
In this work, we presented benzotrithiophene (Btt)-based COFs with an intrinsically adjustable charge distribution for nonsacrificial photocatalytic H 2 O 2 synthesis in water and natural dissolved oxygen under visible light irradiation.Sulfur-rich Btt has a planar conjugated system of C 3h symmetry, in which three thiophene rings are blended on the benzene central ring, tending to achieve favorable optical absorption, π-electron delocalization and high hole mobility 27 1a).We unveiled the concept of a uniport "atom spot-molecular area" via a double donoracceptor method in a periodic framework to directly clarify the differences in terms of the electronic band structure, charge transfer directionality, donor-acceptor energy difference, and O 2 adsorption.As a result, the optimal photosynthetic rate of H 2 O 2 in TaptBtt reached to 2111 μM h −1 (1407 μmol g −1 h −1 ), far higher than that of TpaBtt (252 μmol g −1 h −1 ) and TapbBtt (557 μmol g −1 h −1 ), and also exceeded all of the previously reported COFs.The efficiency of solar-to-chemical conversion was 0.297 % for H 2 O 2 production, surpassing that of the natural synthetic plants (global average ≈ 0.10%) 28 .Collected H 2 O 2 can be directly used to degrade sulfamethoxazole (SMT, an emerging pollutant in natural water bodies and medical wastewater) via the Fenton reaction.Mechanistic study and theoretical calculation revealed that the active sites of the three COFs (2e − ORR) were concentrated on the electron-acceptor fragments near the imine bond.The unique electronic structure of TaptBtt provides a sufficient driving force for the synchronous 2e − WOR and 2e − ORR, significantly lowering the Gibbs free energy of OH* and OOH* intermediates for H 2 O 2 generation.

Electronical and structural characterization of COFs
A mixture containing Btt and Tpa (or Tapb, Tapt) with a molar ratio of 1:1 was adopted via Schiff-base polycondensation under solvothermal conditions, producing TpaBtt, TapbBtt, and TaptBtt.The highest occupied molecular orbital (HOMO) and lowest unoccupied molecular orbitals (LUMO) for the three COFs are predicted and displayed in Supplementary Fig. 1.The HOMO and LUMO orbitals of TpaBtt are concentrated on the electron-donor Tpa unit (D) and the electronacceptor Btt unit (A), respectively.However, the distribution of TapbBtt and TaptBtt in non-electron-occupied LUMO orbitals indicates that electrons in BTT are more likely to transfer to Tapb and Tapt upon excitation.This indicates that the intramolecular donor-acceptor (D-A) structure between the two functional motifs in COFs is profitably constructed.Based on the time-dependent density functional theory simulations, we calculated transition energies and probabilities of each excited state for all COFs.The strongest oscillator strength on fragments of TpaBtt, TapbBtt and TaptBtt indicated that the S1 state has mostly HOMO to LUMO transition (Supplementary Table 1).Energetic levels of several molecular orbital are equal to or lower than the HOMO, while almost all electrons are contributed by the LUMO in most of transition, indicating that the electronic configuration of LUMO nearly represents photogenerated electron composition.
Since the linkage of COFs serves as the connection and transport bridge, the D-A structure within linkage from the perspective of atomic scale should be considered, i.e., carbon of imine bonds as the D unit and nitrogen as the A unit 29,30 .In this work, we referred to the imine bonds as the "atomic spot" and the functional building blocks as the "molecular area".As shown in Fig. 1b, the electron-donor Tpa motif (D) is connected to the "anionic" nitrogen atom, and the electron-acceptor Btt motif (A) is coupled with the "cationic" carbon atom in the imine bond of TpaBtt.This makes the D-A direction of the imine linkage opposite to the direction of electron transfer between the molecular motifs.In contrast, TapbBtt and TaptBtt are in the same direction (D-Atype imine COFs), forming periodic and unhindered modes of charge transport.The energy necessary for the D-A-type imine COFs to twist the same angle in excited state is reduced, resulting in an increase in the energy difference of the groups connected near the imine bond.Hence, the imine linkage of Btt-based COFs is not only endowed with photoreactivity, but also synchronously regulates the charge transfer directionality and the intramolecular donor-acceptor energy difference in these COFs, further affecting the utilization of charge carriers.This combination of line-regions between linkages and linkers (termed as a concept of uniport "atom spot-molecular area") via a dual-donoracceptor mechanism in a periodic framework is proposed to vary the photosynthesis performance and reaction pathways.
Molecular segments of the three COFs were used to verify that the push-pull interactions occur in the "atomic spot-molecular region".The results of photoelectrochemistry confirmed that the TaptBttfragment presents the upper charge separation capability (Supplementary Fig. 2).Furthermore, the fluorescence lifetimes of the TaptBttfragment (1.40 ns) were obviously higher than those of the TapbBttfragment (1.19 ns) and TpaBtt-fragment (0.74 ns), indicating that TaptBtt-fragment can more availably suppress e − -h + recombination (Supplementary Fig. 3).To gain insight into the electron transfer direction for fragments, in-situ X-band electron paramagnetic resonance (EPR) experiments were then conducted (Supplementary Fig. 4).The relative intensity (0.31) of EPR signal for the TpaBtt-fragment in dark and light conditions is obviously higher than that of TapbBtt-fragment (0.29) and TaptBtt-fragment (0.23).The lower relative strength for TaptBtt-fragment is probably related to the ability of ground state charge transfer from the acceptor unit to the donor unit [31][32][33][34] , which is dominated by the integrated interaction of the directivity of the double D-A structure and the energy difference in these molecular fragments.Integrating photoelectrochemical measurements and photoluminescence lifetime with EPR results, TaptBttfragment exhibits more efficient charge transfer due to the favorable push-pull effects between the intramolecular motif and imine bond.Therefore, it can be concluded that the push-pull interaction of the "atomic spot-molecular area" occurs in aperiodic segments and COFs.
The crystalline construction of the COFs was confirmed by powder X-ray diffraction (PXRD), as shown in Fig. 2a.The Pawley refinement demonstrated the good fit of the eclipse stacking model (AA stacking) for three COFs (Supplementary Table 2) 35 .The optimized PXRD displayed the (100) reflection of TpaBtt, TapbBtt and TaptBtt at 2θ = 5.43°, 4.84°, and 4.76°, respectively (Supplementary Fig. 5).The intensity is substantially increased and becomes sharper for TpaBtt, TaptBtt and TapbBtt, with full width at half-maximum (FWHM) values of 0.51°, 0.39°, and 0.47°, respectively (Supplementary Fig. 6 and Supplementary Note 1).According to the Scherrer equation 36,37 , the lowest FWHM means that TapbBtt has the maximum π-conjugated and ordered degree.Furthermore, the (001) plane of the three COFs at the peak position of ~26°, contributes to weak long-range order with an interlayer stacking of ~3.1 Å along the c direction.Fourier transform infrared spectroscopy (FTIR) showed stretching vibrations at 1579, 1617, and 1618 cm −1 for TpaBtt, TapbBtt, and TaptBtt, respectively, which correspond to C=N bond that appeared (Supplementary Fig. 7), in contrast with the pure organic build blocks.
The chemical structures of the three COFs were further verified by solid-state 13 C cross-polarization magic angle spinning nuclear magnetic resonance spectroscopy at the molecular level.As shown in Supplementary Fig. 8, the lower-field signal at ~157 ppm can be assigned to the carbon of imine bond for TpaBtt and TapbBtt 38 .The characteristic carbon signal of imine group for TaptBtt was observed at ~151 ppm, and the relatively high peak intensity is due to its coincidence with the position of benzene ring carbon bonded with nitrogen 39 .X-ray photoelectron spectroscopy (XPS) of the three COFs displayed C, N, O and S elements (Supplementary Figs. 9 and 10 and Supplementary Note 2).The C1s peak was divided into S-C=C (thiophene ring), C-C/C=C (sp 2 aromatic carbon) and C=N bonds (represented imine linkage) 40 .These results provide solid evidence that three kinds of COFs with favorable crystallinity and porosity were successfully prepared.From scanning electron microscopy images and transmission electron microscopy images (Fig. 2b, Supplementary Figs.11-13, and Supplementary Note 3), TaptBtt presents larger raised burrs and thinner layers, and clear lattice fringes with a spacing distance of 0.31 nm were found at its (001) plane.However, TapbBtt is more likely to form dendritic aggregates, with tiny folds clearly visible on the surface of the branches.These tiny folds may be responsible for TapbBtt having a large surface area (1492.4m 2 g −1 ), compared with TpaBtt and TaptBtt (850.9 and 994.9 m 2 g −1 ) in Supplementary Table 3.Additionally, nonlocal density function theory indicated that they have dominant pore widths at 1.20, 1.45, and 1.51 nm, respectively (Supplementary Fig. 14).Therefore, it was concluded that the larger raised burrs and larger pore size improve the exposure for O 2 in the photocatalytic reactions.
The final concentration of H 2 O 2 depends on the dynamic equilibrium of generation-decomposition of H 2 O 2 over the catalyst for a long time.The H 2 O 2 concentration remained over 90% under continuous irradiation for 90 min (Fig. 3a).Compared with TpaBtt and TapbBtt, continuous and steady H 2 O 2 evolution was observed over 7 h for TaptBtt, reaching to 80 μmol (Fig. 3b).To be practically useful, the long-term photostability of catalysts is essential.We therefore tested the photostability of TaptBtt using a continuous approach (96 h) in pure water.As shown in Supplementary Fig. 17, the photocatalytic H 2 O 2 production rate of TaptBtt reaches to 580 μmol, which is higher than 330 μmol for SonoCOF-F2 under same conditions 50 .Although the rate of H 2 O 2 formation began to slow after 48 h, the total amount continued to rise.The H 2 O 2 production rate of TaptBtt was well preserved after four consecutive cycles (Fig. 3c), indicating enticing photocatalytic stability.Meanwhile, the crystallinity and chemical structure of three COFs were still maintained, as seen in the PXRD (Supplementary Fig. 18) and FTIR results (Supplementary Fig. 19).The presence of sacrificial reagents or buffers normally limits the direct utilization of H 2 O 2 for environmental implications 51 .In this nonsacrificial system, the separated H 2 O 2 was directly used to degrade sulfamethoxazole in wastewater.A fast decomposition with a removal efficiency of 72% was obtained within 5 min via the Fenton reaction (Fig. 3d).This result revealed that the photocatalytically produced H 2 O 2 solution could be directly applied for environmental remediation.

Thermodynamic and kinetic analysis of H 2 O 2 origination
The precondition for photocatalytic H 2 O 2 generation involves thermodynamics requirements.The absorption edges of TpaBtt, TapbBtt, and TaptBtt, shown in UV/visible diffuse reflectance spectrum (UV/Vis-DRS), correspond to 645 nm, 578 nm, and 590 nm, respectively (Fig. 3e).Therefore, it can be deduced that the wide difference in photocatalytic H 2 O 2 production in the three COFs is not dominated by the crystallinity, surface area and visible-light absorption.
The separation and recombination of photogenerated carriers is another important factor.According to Fig. 3g, TaptBtt exhibited a photocurrent density (i-T), that was markedly higher than that of TpaBtt and TapbBtt.TaptBtt had an upper charge separation capability and contained more available surface photogenerated carriers for solid-liquid interfacial reactions 54,55 .Electrochemical impedance spectroscopy (EIS) revealed that TaptBtt showed a lower charge transference resistance, which resulted in the faster transfer of electrons in the interface (Supplementary Fig. 22).The tendency of the photoelectrochemical results is positively correlated with that of the H 2 O 2 yield.There is various accumulation of surface charge carriers on the surface of the catalyst for participation in the evolution of both intermediates and H 2 O 2 .
Furthermore, steady-state photoluminescence (PL) spectra exhibited obvious PL quenching of TaptBtt, as shown in Fig. 3h, compared with TpaBtt and TapbBtt.The fs-TA spectra of the three COFs (Supplementary Fig. 23) form a wide negative feature at 575 nm, assigned to ground state bleaching and stimulated emission, while the positive absorption band at 650 nm belongs to excited state absorption (ESA).The dynamics of excited state relaxation are mainly determined by the magnitude of intramolecular charge-transfer in molecules 56 .As a consequence, the peak shift at progressively increasing time delays could explain the charge-transfer character of these push-pull units in COFs 57 .As shown in Supplementary Fig. 23, compared to that of TpaBtt, the ESA and SE peaks for TaptBtt have obvious redshift amplitudes (black arrow).This results from the electron-deficient N-bridging of imines to the electron-acceptor unit, further demonstrating that COFs can achieve efficient photogenerated charge transfer using the push-pull mechanism from energy difference.Consequently, a global target analysis is used in three COFs, in which the initial Franck-Condon state splits into excited states and rapidly reaches the bound excitonic state (BE) and charge separation state (CS) through internal transformation.The exciton under the BE state is trapped, localizing on a single edge of the COFs, and the electron and hole under the CS state reside on separate motif edges either by intra-or interlayer charge transfer to increase their exciton radius, reduce their coulombic force, and prolong their persistence in the excited state 58 .The fitting dynamics show the variation of two decay time constants in Fig. 3i, where the short lifetime corresponds to the ascending component of TA and the intermediate recombination lifetime of the exciton trapped in the BE state, and the other component is the separation of the exciton into the SC state with a longer recombination lifetime [59][60][61] .The values of τ 1 and τ 2 are 13.8 ps and 1925.2 ps for TpaBtt, and 15.7 ps and 2283.8 ps for TaptBtt.The τ 2 lifetime in TaptBtt is much longer-lived than that of TpaBtt, which is accountable for the greater charge separation capability.The results for PL and TA indicate that the channels of charge transfer between triazine motif and benzotrithiophene motif are accessible via the dual D-A structure of imine linkage in TaptBtt, leading to efficient suppression of photoexcited charge recombination.
It has recently been reported that the protonation of imine bonds in COFs could reverse the direction of charge transfer, improving their photocatalytic performance 30 .Inspired by this result, we think that the charge reversal caused by protonation is directly related to the energy difference of the line-region combination between linkages and linkers (Supplementary Fig. 24).Thus, all three COFs were protonated by ascorbic acid to afford TpaBtt-AC, TapbBtt-AC, and TaptBtt-AC, and their FITR spectra demonstrated that the protonation was successful (Supplementary Fig. 25).A new peak appeared at around 1800 cm −1 (broad), assigned to the C=NH + bond 62 .Subsequently, the photocatalytic H 2 O 2 evolution performance of all COFs was examined (Supplementary Fig. 26).A value was obtained for the H 2 O 2 concentration by TpaBtt-AC (5.8 μmol h −1 ), which was nearly three times higher than that of pristine TpaBtt, followed by that of TapbBtt-AC (7.2 μmol h −1 ), and nearly 1.8 times higher than that of pristine TapbBtt.However, H 2 O 2 production in TaptBtt was essentially unchanged, and even slightly decreased.We further probed the difference in the separation and recombination of carriers for these COFs by i-T and EIS.Obviously, TpaBtt-AC and TapbBtt-AC showed a higher current density than that of their pristine COFs (Supplementary Fig. 27a, b), while TaptBtt-AC exhibited the opposite trend (Supplementary Fig. 27c).A similar phenomenon was also observed in the EIS tests (Supplementary Fig. 27d-f).Meanwhile, the results of fs-TA spectra before and after protonation provide solid evidence (Supplementary Figs.28 and 29 and Supplementary Note 4).Based on the above results, it was concluded that the performance of TpaBtt can be improved through protonation of imine bonds.Intrinsically, the protonation of imine bonds leads to the inversion of charge transfer orientation in an intramolecular way.In terms of codirectional charge transfer for TaptBtt, the larger energy difference in the line-region combination between linkages and linkers was difficult to overcome by protonation of the imine bond to reverse the charge transfer orientation.This result directly indicates that TaptBtt exhibits greater energy transfer between motifs than the other two COFs.

Photocatalytic reaction pathways of H 2 O 2 evolution
To verify that photoinduced holes and electrons participate in photocatalysis, the yields of H 2 O 2 under various conciliatory conditions were determined.When the holes were trapped in the presence of CH 3 OH and air (Fig. 4a), only the H 2 O 2 production for TaptBtt presented a downwards trend, while those for TpaBtt and TapbBtt showed an upward trend (Supplementary Fig. 30).This phenomenon indicates that holes generated from TpaBtt and TapbBtt may not be directly involved in the photocatalytic production of H 2 O 2 .When O 2 was replaced by Ar in the reaction system, the yield of H 2 O 2 decreased significantly for the three COFs.Compared with the Ar-only condition, the yield of H 2 O 2 increased in TaptBtt when the electron-trapping agent (KBrO 3 ) was added in the presence of Ar.However, the H 2 O 2 concentration was almost undetectable for TpaBtt and TapbBtt under the same conditions.This result implies that a four-electron water oxidation process may have occurred in TpaBtt and TapbBtt, while TaptBtt could directly utilizes holes and electrons synchronously during the production of H 2 O 2 .
Rotating disk electrode and rotating ring-disk electrode (RRDE) measurements were used to examine the 4e − WOR and 2e − WOR routes of COFs.As shown in Fig. 4b and Supplementary Fig. 31, the average electron transmission numbers participating in the ORR were 1.62, 1.57, and 1.71 for TpaBtt, TapbBtt, and TaptBtt, respectively.Compared with TpaBtt and TapbBtt, the number of metastasizing electrons of TaptBtt approaches 2, indicating that H 2 O 2 selectivity is higher under the same conditions.The results also reveal the advantage of the line-region combination between imine linkage and Tapt/Btt linker in TaptBtt for 2e − ORR pathway.During the RRDE test, the incremental disk currents (Supplementary Fig. 32a) with potentials higher than 1.4 V (solid lines) imply that water oxidation occurs at the rotating disk electrode for TpaBtt, TapbBtt and TaptBtt.No reduction current was detected for three COFs at the Pt ring electrode, demonstrating that TpaBtt, TapbBtt, and TaptBtt could not generate O 2 via water oxidation (4e − WOR process).TaptBtt might have the ability to directly exploit holes (Fig. 4a).When the potential provided at the ring electrode was altered to an oxidative potential of +0.6 V, a weak oxidation current can be detected for TaptBtt, due to the oxidation of H 2 O 2 under the ring electrode (Supplementary Fig. 32b).As the RRDE results indicated that TpaBtt and TapbBtt cannot produce O 2 , and the factors that cause the weak H 2 O 2 production under the condition of Ar should be further explored.
Subsequently, H 2 Supplementary Fig. 33, none of the three COFs was detected for 18 O 2 production in the first stage (including dark, light and before addition of MnO 2 ), while all did in the second stage-decomposition of photogenerated H 2 O 2 by MnO 2 (Fig. 4c and Supplementary Fig. 34).However, we can clearly see that the ratio of two types of oxygen ( 18 O 2 and 16 O 2 ) is significantly different after H 2 O 2 decomposition in the second step.The ratio of 18 O 2 and 16 O 2 is 1:4.8 (close to the four-electron water oxidation process, Eq. ( 7) for TpaBtt and TapbBtt, while the ratio is 1:1.2 (close to the two-electron water oxidation process, Eq. (3) for TaptBtt 51,63,64 .In addition, a difference trend was observed in the H 2 O 2 concentration after a sacrificial agent was added, and H 2 O 2 can be detected under an Ar atmosphere for TpaBtt, TapbBtt, and TaptBtt (Fig. 4a and Supplementary Fig. 30) 47,51 .For TpaBtt and TapbBtt, it was reasonably concluded that this four-electron process is involved in the synthesis of hydrogen peroxide.The oxygen produced by the fourelectron water oxidation is tiny and may be adsorbed on the surface of COFs, and then directly used for the formation of H 2 O 2 .Thus, the fourelectron process provides little contribution to H 2 O 2 production for TpaBtt and TapbBtt.This also explains the absence of O 2 in the RRDE (Supplementary Fig. 32a) and oxygen-producing isotopes (Supplementary Fig. 33).Therefore, these results provide solid support that H 2 O 2 photosynthesis undergoes 2e − ORR and 4e − ORR for TpaBtt and TapbBtt, while TaptBtt has 2e − ORR and 2e − WOR dual processes with higher atomic efficiency.
There are two pathways by which WOR and ORR generate H 2 O 2 from water and air via 2e − redox 63 , corresponding to Eqs. (1-3) and Eqs.(4-6).Whether one-step (Eqs.( 3) and ( 6 − was quantified via a recognizable reaction with nitro blue tetrazolium (NBT, Supplementary Fig. 36).The photocatalytic yield of •O 2 − by TaptBtt was 6.02 × 10 −5 M, markedly higher than that of TapbBtt (3.44 × 10 −5 M) (Fig. 4d), suggesting that the larger energy difference of intramolecular donor-acceptor in TaptBtt promoted the generation of •O 2 − intermediate.Capture experiments of the active species were carried out (Supplementary Fig. 37).The addition of benzoquinone (BQ, •O 2 − scavenger) significantly inhibited the yield of H 2 O 2 for TpaBtt, TapbBtt, and TaptBtt.When tert-butanol (•OH scavenger) was added to the system, H 2 O 2 production tended to increase.The carbon-centered radical (R•) produced by tert-butanol reacts with dissolved oxygen to form RO 2 •, which spontaneously binds to form tetroxide intermediates, and finally splits to form H 2 O 2 65 .In-situ diffuse reflectance infrared Fourier transform (DRIFT) spectroscopy measurements were taken to monitor the interactions between the active sites and the intermediates.As shown in Fig. 4e and Supplementary Fig. 38, the characteristic stretching of O-O at ~892 cm −1 appears under photocatalytic reaction, verifying the occurrence of two-step single-electron route 66,67 .The O-O bond serves as the key intermediate for H 2 O 2 production in 2e − ORR.The intensity of the O-O peak follows the order of TaptBtt > TapbBtt > TpaBtt, matching well with the EPR and NBT results.The intensity of the peaks at 1012 cm −1 and 1086 cm −1 , corresponding to the bending modes of C-H and C-C of the center ring on the three COFs, gradually increases.Besides, the C-S-C (951 cm −1 ), belonging to the thiophene unit 68 , is also gradually enhanced.The vibration of the C-C and C-S-C peaks indicates that occurrence of photoinduced electron transfer occurs between the thiophene of the Btt motif and the benzene ring fragments of Tapt motif.More importantly, vibrations were observed for C=N (1623−1627 cm −1 ) and C=NH + (1567 cm −1 ) for three COFs after photoexcitation, indicating that protonation occurs on imines (Supplementary Fig. 39).The peak at 1041 cm −1 , ascribed to the C-OH intermediate 63 , confirms the presence of adsorbed OH* on TaptBtt.In terms of TaptBtt, water could react directly with two holes to form H 2 O 2 upon exposure to light, while oxygen reacts with protons and electrons to form hydrogen peroxide via •O 2 − (Fig. 4f).OOH*, an important intermediate state for the 2e − ORR, requires electrons on the surface of the materials.The benzene ring near the imide is the electron-absorbing unit for TapbBtt and TaptBtt.Therefore, we can reasonably infer that the active site is located near the imine bond of the electron-acceptor fragment through in-situ spectra.

Theoretical analysis of intermediates for the overall process of H 2 O 2 generation
Density functional theory (DFT) calculations were conducted to investigate the elementary step of H 2 O 2 formation on the three COFs.
The key to selectivity of 2e − ORR to H 2 O 2 relied on the generation of OOH* and consequent hydrogenation [69][70][71] .The adsorption of O 2 and H + is a precondition for the formation of OOH* on the surface of photocatalysts.Therefore, the photocatalytic reduction of O 2 to H 2 O 2 can be divided into four steps (Eqs.(S1-S4)).The optimized structures of three COFs with adsorbed intermediates are carefully given in Fig. 5a and Supplementary Fig. 40.O 2 adsorption falls into the electronacceptor motif of COFs so that it facilitates access to electrons and protons for selectively forming the OOH* intermediate.This is consistent with the stretching of O-O characteristic peaks in the in-situ DRIFT spectra.Hirshfeld analysis reveals that the average charge of these carbon (C) atoms close to imine linkage is ~−0.122eV for TpaBtt (the thiophene ring in Btt) and increases to −0.119 eV for TaptBtt (the benzene ring of Tapt nears imine bond) (Supplementary Fig. 41).The C1 atom of TaptBtt has a positive value of 0.041 eV, which indicates a strong ability to extract electrons (i.e., Lewis acidity), beneficial for inplane charge transfer 72 .The Hirshfeld charge (−0.09 eV) of O 2 on TaptBtt decreases in relative to that of TpaBtt (−0.143 eV) and TapbBtt (−0.109 eV) (Supplementary Fig. 42).The pH value of pure water in the reactive system was 5.60, and it then decreased to 5.12, 5.32, and 5.20 after TpaBtt, TapbBtt and TaptBtt were added, respectively.Thus, the imine bonds in COFs undergo protonation, and the extent of protonation is determined by the quantity and hydrophilicity of nitrogen sites that are available in the framework 73,74 .The protonation of imine bonds provides a favorable hydrogen source for the O 2 */H + step during the formation of the OOH* intermediate.
Correspondingly, the Gibbs free energy (ΔG) for each step involved in 2e − ORR was calculated, as shown in Fig. 5b  ORR with a lower energy barrier of 0.57 eV.The real active sites of forming OOH* are located on the C atom of electron-acceptor fragments nearest the imine linkage (Supplementary Fig. 43) in TaptBtt.This also demonstrates that the electrons on the benzotrithiophene motif of TaptBtt are transported to the benzene ring of Tapt, promoting the photocatalytic oxygen reduction.These results are consistent with the in-situ DRIFT spectra.Figure 5c-e displays the charge difference density between the pivotal intermediate OOH* and active sites near imine bond of COFs.Compared with TpaBtt and TapbBtt, the charge redistribution of TaptBtt interacting with OOH* is more noteworthy, indicating that the line-region combination of imine linkages and linkers (Tapt and Btt) via a dualdonor-acceptor mechanism still determines the selective formation of OOH* with favorable binding ability in active sites.
For 2e − WOR pathway occurring on TaptBtt, the OH* generation is the largest vital step (Eqs.(S5 and S6).The C atom (Site 4) in triazine units in TaptBtt shows the smallest ΔG 1 for the formation of OH* compared to other probable sites (Supplementary Fig. 44), indicating that the 2e − WOR occurs in the triazine units.The H + produced by water oxidation can be utilized by 2e − ORR and hydrogenation is accelerated effectively for TaptBtt, leading to notable activity towards H 2 O 2 selectivity.It was confirmed that the local electronic properties changed significantly in the cooperation units of Btt and Tapt, thus regulating the binding strength of O 2 * and OOH* intermediates.The O 2 reduction process occurs on the benzene ring while the water oxidation reaction takes place on the triazine units of TaptBtt.These functional motifs in TaptBtt with spatially separated redox species endow the selective formation of intermediates for highly efficient H 2 O 2 production via synchronous 2e − WOR and 2e − ORR pathways.
Based on the above analysis, the overall process of H 2 O 2 generation over three COFs is summarized below.Initially, 2e − ORR plays an important role to generating H 2 O 2 in the three COFs due to the feasibility of thermodynamics.The partial contribution of 2e − WOR in TaptBtt system is also important for periodic cycles without a sacrificial agent, while the 4e − WOR has a little contribution to TpaBtt and TapbBtt.In the ORR process, i) COFs differentially adsorb dissolved oxygen under dark reaction and then undergo photoinduced in-plane electron transfer; ii) the formed O 2 * on electron-acceptor fragment utilizes the transferred electrons and the protons from the adjacent imine bond to generate the OOH* intermediate; iii) protons in water are hydrogenated with OOH* to selectively produce H 2 O 2 .For the 2e − WOR process of TaptBtt, two H 2 O molecules are adsorbed onto the Tapt unit to form an intermolecular hydrogen bond 75 , which is subsequently attacked by photoinduced holes to directly produce H 2 O 2 .The remaining two protons are finally utilized by ORR process, forming a complete cycle of H 2 O 2 synthesis in Fig. 4f.

Discussion
In summary, we rationally engineered benzotrithiophene-based covalent organic frameworks by regulating the electron distribution and transfer directionality for hydrogen peroxide photosynthesis.TaptBtt displayed attractive activity for H 2 O 2 production with a yield rate of 2111 μM h −1 (21.11 μmol h −1 and 1407 μmol g −1 h −1 ) and a solar-tochemical conversion efficiency of 0.296 %.The codirectional charge transfer and larger energy difference of the line-region combination between linkages and linkers in terms of dual-donor-acceptor structures in the periodic framework promote a satisfying energy band, favorable intermediate interaction, optimal reactive pathways and finally high-yield synthesis of H 2 O 2 .The collected H 2 O 2 solution can be (Btt, 66.1 mg, 0.2 mmol) were placed into a 10 mL Pyrex tube, and dissolved into 1,2-dichlorobenzene (o-DCB, 3 mL) and n-butanol (3 mL) mixed solution (v/v = 1:1).After the above mixture was sonicated for 10 min, acetic acid aqueous solution (0.3 mL, 9 M) was added, and then the system was sonicated again for 2 min.The tube was degassed by three freeze-pump-thaw cycles and then sealed off and heated at 120 °C for 3 days.The powder collected was washed with tetrahydrofuran and acetone several times, and dried at 80 °C under vacuum for 24 h to obtain TapbBtt sample in 82% isolated yield.

Fig. 1 |
Fig. 1 | Synthesis of Btt-based COFs with the directionality and energy difference of the charge transition.a Synthesis of TpaBtt, TapbBtt and TaptBtt.b Directionality of electron transfer between functional motifs and imine linkage in TpaBtt, TapbBtt, and TaptBtt.The yellow dashed lines represent motifs and red dashed lines represent imine bonds.The shade of the color represents the difference in energy.

Fig. 2 |
Fig. 2 | Structural characterization and H 2 O 2 evolution performance of Bttbased COFs. a PXRD patterns of TpaBtt, TapbBtt, and TaptBtt.b TEM images of TpaBtt, TapbBtt and TaptBtt.c Photocatalytic activity of TpaBtt, TapbBtt and TaptBtt for H 2 O 2 generation in pure water without any sacrificial agents.Conditions: water (10 mL), catalyst (15 mg), 300 W Xe lamp, λ > 420 nm.d Effects of TaptBtt dosage on H 2 O 2 synthesis in water.e PXRD patterns of various degrees of crystallinity in TaptBtt.f Effects of TaptBtt crystallinity on H 2 O 2 synthesis in water.

Fig. 3 |
Fig. 3 | Stability, implication and photoelectrochemical analysis of Btt-based COFs. a Photocatalytic decomposition of H 2 O 2 (C 0 = 1 mM) in pure water under an Ar atmosphere over TpaBtt, TapbBtt and TaptBtt.b Photocatalytic H 2 O 2 production of TaptBtt for 7 h under simulated AM 1.5 G sunlight irradiation.Conditions: water (60 mL), catalyst (50 mg).c Stability measurement of TaptBtt for H 2 O 2 generation in pure water.Conditions: water (50 mL), catalyst (15 mg), 300 W Xe lamp, λ > 420 nm.d Sulfamethoxazole decomposition directly using produced H 2 O 2 solution via Fenton reaction.e UV-vis DRS of TpaBtt, TapbBtt, and TaptBtt.f Energy band values of these three COFs.the red and green lines represent for 2e − ORR and 2e − WOR, respectively.g Transient photocurrents of COFs under λ > 420 nm.h Photoluminescence spectra of three COFs.i Corresponding kinetics of characteristic fs-TA absorption bands observed at 540 nm for the spectra of TpaBtt, TapbBtt, and TaptBtt.

2 −
)) or two-step (Eqs.(1, 2) and Eqs.(4, 5) occurs through the OH and •O 2 − intermediates can be checked.Therefore, a 5,5-dimethyl-pyrroline N-oxide probe was utilized as a free radical spin-capturer to measure •O 2 − and •OH.The •O signal could be detected in TpaBtt, TapbBtt and TaptBtt under light irradiation, but there was no •OH signal (Supplementary Fig. 35).The results indicate that H 2 O 2 is mainly produced via a 2e − two-step routine mediated by •O 2 − in the presence of three COFs, while TaptBtt involves an extra process of H 2 O 2 formation through 2e − one-step oxidation of water.The •O 2

Fig. 4 |
Fig. 4 | Reaction pathways and mechanisms of H 2 O 2 photosynthesis.a Amount of H 2 O 2 generated on TaptBtt in CH 3 OH (10% V/V, as the hole trapping agent), H 2 O 2 produced in AR and KBrO 3 (0.01 M).Conditions: water (50 mL), catalyst (15 mg), 300 W Xe lamp, λ > 420 nm.b Kouteckly-Levich plots obtained by RDE tests versus Ag/AgCl.c •O 2 − yields of TpaBtt, TapbBtt and TaptBtt detected by NBT method under light conditions.d 18 O 2 isotope experiment for TaptBtt.e In-situ DRIFT spectra of TaptBtt.f Mechanism of TaptBtt for photocatalytic H 2 O 2 formation.The white, gray, blue, yellow and red spheres refer to hydrogen, carbon, nitrogen sulfur and oxygen, respectively.

Fig. 5 |
Fig. 5 | Theoretical knowledge on the intermediates produced during H 2 O 2 evolution with various free energies for Btt-based COFs. a Different adsorption site a of O 2 , O 2 /H + and OOH* on TpaBtt, TapbBtt and TaptBtt, respectively.b Free energy profiles for photocatalytic H 2 O 2 evolution reactions over three COFs.c-eCharge difference density between OOH* and adsorption sites on TpaBtt, TapbBtt and TaptBtt, respectively.Yellow represents the electron accumulation area, and the green represents the electron dissipation area.The white, gray, blue, yellow and red spheres refer to hydrogen, carbon, nitrogen sulfur and oxygen, respectively.
. TpaBtt exhibited strong adsorption of the O 2 * intermediate with a ΔG 1 value of −2.33 eV, terrifically restricting the desorption of the OOH* intermediate.The rate-limiting step (OOH* → H 2 O 2 ) has an extremely high energy barrier with a value of 1.14 eV.The OOH* formed on the active sites cannot be released in a timely manner from the surface of the catalyst, which affects the continuous utilization of the site.Although TapbBtt weakened the adsorption of O 2 * intermediate with a ΔG 1 value of 0.28 eV, it exhibited a relatively high free energy (0.67 eV) during protonation to form the O 2 */H* intermediate.Optimally, TaptBtt simultaneously modulates the binding strength of O 2 * and OOH* intermediates, thus promoting the 2e