Transition metal borides (TMBs) or phosphides (TMPs) have attracted great attention to the design of bifunctional electrocatalysts for energy storage. The superaerophobicity and superhydrophilicity of the catalytic electrode surface are crucial factors to determine the reaction process of the gas electrode. Herein, we report a self-supported electrode of carbon nanotube (CNTs) array grown on carbon cloth (CC) modulated together by boron-doped cobalt phosphide (CoP-B/CNTs/CC). The electrode requires the overpotential of 73.8 mV and 189.5 mV at the current density of ±10 mA cm−2 for hydrogen and oxygen evolution reactions in an alkaline electrolyte (1.0 M KOH), respectively, meanwhile maintaining outstanding long-term durability for more than 300 h. The excellent activity of CoP-B/CNTs/CC is attributed to boron doping regulating its electronic structure and further enriching active sites. The attractive stability of CoP-B/CNTs/CC is due to the unique geometric structure of the self-supported electrode. Furthermore, the superaerophobicity and superhydrophilicity of the electrode surface also accelerate the reaction process of the gas electrode. Expectedly, water splitting cells assembled using CoP-B/CNTs/CC electrodes as cathode and anode, respectively, require a cell voltage of 1.54 V at 10 mA cm−2, which is lower than that of the Pt/C/CC||RuO2/CC couple (1.69 V at 10 mA cm−2). Importantly, CoP-B/CNTs/CC||CoP-B/CNTs/CC achieve stable cell voltage under the step current changes (10 mA cm−2, 50 mA cm−2, and 100 mA cm−2) over 300 h. This work highlights a new path to understanding the effects of the static and dynamic behavior of bubbles on the surface of self-supporting electrodes on catalytic performance.