Surface-confined covalent coupling reactions of the linear compound 4-(but-3-en-1-ynyl)-4'-ethynyl-1,1'-biphenyl (1), which contains one alkyne and one enyne group on opposing ends,h ave been investigated using scanning tunneling microscopy( STM) and density functional theory (DFT) calculations.T he reactions showasurface-dependent chemoselectivity:o nA u(111),c ompound 1 preferentially yields cyclotrimerization products,w hile on Cu(111), as elective coupling between the enyne and alkyne groups is observed. Linear,V -shaped string formations combined with Y-shaped bifurcation motifs result in arandom reticulation on the entire surface.D FT calculations show that the CÀH···p dÀ transition state of the reaction between the deprotonated alkyne group and anearby H-donor of the alkene group plays akey role in the mechanism and high chemoselectivity.This study highlights ac oncept that opens new avenues to the surface-confined synthesis of covalent carbon-based sp-sp 2 polymers.