Covalent organic frameworks (COFs) offer vast structural and chemical diversity enabling a wide and growing range of applications. While COFs are well-established as heterogeneous catalysts, so far, their high and ordered porosity has scarcely been utilized to its full potential when it comes to spatially confined reactions in COF pores to alter the outcome of reactions. Here, we present a highly porous and crystalline, large-pore COF as catalytic support in α,ω-diene ring-closing metathesis reactions, leading to increased macrocyclization selectivity. COF pore-wall modification by immobilization of a Grubbs-Hoveyda-type catalyst via a mild silylation reaction provides a molecularly precise heterogeneous olefin metathesis catalyst. An increased macro(mono)cyclization (MMC) selectivity over oligomerization (O) for the heterogeneous COF-catalyst (MMC:O=1.35) of up to 51 % compared to the homogeneous catalyst (MMC:O=0.90) was observed along with a substrate-size dependency in selectivity, pointing to diffusion limitations induced by the pore confinement.