Pt-free cathode catalysts are attracting increased interest to replace platinum in polymer electrolyte membrane fuel cells (PEFCs). Heat-treated nitrogen-doped carbons decorated with iron have been the most widely studied alternative. However, lack of understanding of the formation of active sites and degradation mechanisms in such catalysts is hindering their progress. Here, we use a nitrogen-doped carbon foam support with optimised porosity, surface area, and conductivity which is then infiltrated with three different iron precursors: iron (II) acetate (FeAc); iron (III) chloride (FeCl3); and iron phthalocyanine (FePc). These are then pyrolyzed to form Fe-N-C-based ORR electrocatalysts. This approach takes advantage of an already optimized conductive, porous, high surface area and temperature-stable support. The stability of the support helps to separate the role of the different iron precursors from other factors in the generation of catalytic active sites. High temperature X-ray absorption fine structure (HT-XAFS) and high temperature X-ray photoelectron spectroscopy (HT-XPS) were employed to study changes in the iron precursors during the synthesis of Fe-N-C electrocatalysts. Furthermore, near ambient pressure XPS (NAP-XPS) and in-situ electrochemical XAFS were performed to study the interaction between the synthesized catalysts and oxygen. These results are then related to the electrochemical activity.