Conventional sequence-controlled copolymerization often suffers from strict requirements on reaction kinetics of comonomer pairs and tedious synthetic processes. Here, the authors demonstrate a sequence-controlled alternating copolymerization with molecular precision on a Ag(111) surface under thermodynamic control of the polymerization selectivity.