Vinyl-bearing triazine-functionalized covalent organic frameworks (COFs) have emerged as promising materials for electrocatalysis and energy storage. Guided by density functional theory calculations, a vinyl-enriched COF (VCOF-1) featuring a donor-acceptor structure was synthesized based on the Knoevenagel reaction. Moreover, the VCOF-1@Ru without pyrolysis was obtained through chemical coordination interactions between VCOF-1 and RuCl