Elimination reactions are one of the most important reactions in organic synthesis, especially in the formation of alkenes and alkynes. Herein, based on scanning tunneling microscopy, we report the bottom-up synthesis of one-dimensional carbyne-like nanostructures, metalated carbyne ribbons with the incorporation of Cu or Ag atoms, through αand β-elimination reactions of tetrabromomethane and hexabromoethane on surfaces. Density functional theory calculations demonstrate a width-dependent band gap modulation within these ribbon structures, which is affected by interchain interactions. Moreover, mechanistic insights into the onsurface elimination reactions have also been provided in this study.