Transition metal phosphides (TMPs) show promise in water electrolysis due to their electronic structures, which activate hydrogen/oxygen reaction intermediates. However, TMPs face limitations in catalytic efficiency due to insufficient active sites, poor conductivity, and multiple intermediate steps in water electrolysis. Here, we synthesize a highly efficient bifunctional self-supported electrocatalyst, which consists of an N-doped carbon shell anchored on Fe-doped CoP/Co