In situ electrochemical IR study of the CO2 reduction by inorganic analogues of carbon monoxide dehydrogenase (CODH) reveals the critical role of Ni in the activity and selectivity of Fe sulfides for CO2 reduction.