On-surface synthesis is emerging as ahighly rational bottom-up methodology for the synthesis of molecular structures that are unattainable or complex to obtain by wet chemistry.H ere,o ligomers of meta-polyaniline,aknown ferromagnetic polymer,w ere synthesized from para-aminophenol building-blocks via an unexpected and highly specific on-surface formal 1,4 Michael-type addition at the meta position, driven by the reduction of the aminophenol molecule. We rationalizet his dehydrogenation and coupling reaction mechanism with ac ombination of in situ scanning tunneling and non-contact atomic force microscopies,h igh-resolution synchrotron-based X-ray photoemission spectroscopya nd first-principles calculations.This study demonstrates the capability of surfaces to selectively modify local molecular conditions to redirect well-established synthetic routes,s uch as Michael coupling,t owards the rational synthesis of new covalent nanostructures.