A highly active and stable Fe3C-containing Fe/N/C catalyst, derived from a cationic Cd(ii)-based metal-organic framework involving accurate control over Fe-doping via anion-exchange with potassium ferricyanide, shows superior oxygen reduction performance over the benchmark Pt/C catalyst in an alkaline electrolyte.