The solid-state incorporation of a mononuclear iron(iii) complex within the pores of a magnetic 3D metal-organic framework (MOF) in a single crystal to single crystal process leads to the formation of a new hybrid material showing both a guest-dependent long-range magnetic ordering and a spin-crossover (SCO) behaviour.