The nature of metal–ligand interactions remains unclear in coordination chemistry. Hao et al. address this question using in situelectrochemically controlled atomic force microscopy, which can monitor and modulate the coordinative bonding in a transition metal complex at a molecular level.