Surface-confined
synthesis is a promising approach to build complex
molecular nanostructures including macrocycles. However, despite the
recent advances in on-surface macrocyclization under ultrahigh vacuum,
selective synthesis of monodisperse and multicomponent macrocycles
remains a challenge. Here, we report on an on-surface formation of
[6 + 6] Schiff-base macrocycles via dynamic covalent
chemistry. The macrocycles form two-dimensional crystalline domains
on the micrometer scale, enabled by dynamic conversion of open-chain
oligomers into well-defined ∼3.0 nm hexagonal macrocycles.
We further show that by tailoring the length of the alkyl substituents,
it is possible to control which of three possible productsoligomers,
macrocycles, or polymerswill form at the surface. In situ scanning tunneling microscopy imaging combined with
density functional theory calculations and molecular dynamics simulations
unravel the synergistic effect of surface confinement and solvent
in leading to preferential on-surface macrocyclization.