From a layered iridium(iii)-cobalt(ii) organophosphonate to an efficient oxygen-evolution-reaction electrocatalyst.