Covalent organic frameworks (COFs) are distinguished from other organic polymers by their crystallinity1–3, but it remains challenging to obtain robust, highly crystalline COFs because the framework-forming reactions are poorly reversible4,5. More reversible chemistry can improve crystallinity6–9, but this typically yields COFs with poor physicochemical stability and limited application scope5. Here we report a general and scalable protocol to prepare robust, highly crystalline imine COFs, based on an unexpected framework reconstruction. In contrast to standard approaches in which monomers are initially randomly aligned, our method involves the pre-organization of monomers using a reversible and removable covalent tether, followed by confined polymerization. This reconstruction route produces reconstructed COFs with greatly enhanced crystallinity and much higher porosity by means of a simple vacuum-free synthetic procedure. The increased crystallinity in the reconstructed COFs improves charge carrier transport, leading to sacrificial photocatalytic hydrogen evolution rates of up to 27.98 mmol h−1 g−1. This nanoconfinement-assisted reconstruction strategy is a step towards programming function in organic materials through atomistic structural control.
Support-induced strain engineering is useful for modulating the properties of two-dimensional materials. However, controlling strain of planar molecules is technically challenging due to their sub-2 nm lateral size. Additionally, the effect of strain on molecular properties remains poorly understood. Here we show that carbon nanotubes (CNTs) are ideal substrates for inducing optimum properties through molecular curvature. In a tandem-flow electrolyser with monodispersed cobalt phthalocyanine (CoPc) on single-walled CNTs (CoPc/SWCNTs) for CO2 reduction, we achieve a methanol partial current density of >90 mA cm−2 with >60% selectivity, surpassing wide multiwalled CNTs at 16.6%. We report vibronic and X-ray spectroscopies to unravel the distinct local geometries and electronic structures induced by the strong molecule–support interactions. Grand canonical density functional theory confirms that curved CoPc/SWCNTs improve *CO binding to enable subsequent reduction, whereas wide multiwalled CNTs favour CO desorption. Our results show the important role of SWCNTs beyond catalyst dispersion and electron conduction.