The dominant role of the magnetoresistance effect caused by spin electron scattering in the oxygen evolution reaction is unveiled through an in situ tunable magnetic field-electrochemical testing system.