On-surface assembly of a spin-bearing and non-aromatic porphyrin-related synthetic Co(II)-complex on a ferromagnetic Ni thin film substrate and subsequent magnetic exchange interaction across the interface were studied by scanning tunnelling microscopy (STM), X-ray absorption spectroscopy (XAS), X-ray magnetic circular dichroism (XMCD) and density functional theory +U (DFT + U) calculations.