Heterojunction cobalt-iron fluorides anchored on MXene were developed for the oxygen evolution reaction. Interfacial charge redistribution facilitates the formation of active species and lowers the reaction energy barrier, resulting in superior catalytic performance.