Immobilization of a molecular cobalt cubane catalyst on porous BiVO4via electrochemical polymerization for efficient and stable photoelectrochemical water oxidation.