Developing low-cost and earth-abundant electrocatalysts with high performance for electrochemical water splitting is a challenging issue. Herein, we report a facile and effective way to fabricate three-dimension (3D) ordered mesoporous Co 1−x Fe x P (x=0, 0.25, 0.5, 0.75) electrocatalyst. Benefiting from 3D ordered mesoporous pore channels and composition optimization, the Co 0.75 Fe 0.25 P exhibits excellent electrocatalytic activities with low overpotentials of 270 and 209 mV at 10 mA cm −2 for oxygen evolution reaction (OER) and hydrogen evolution reaction (HER), respectively, in the alkaline electrolyte along with a durable electrochemical stability. In addition, as both the cathode and anode, the Co 0.75 Fe 0.25 P also exhibits superior electrolysis water splitting performance with only an applied voltage of 1.63 V to attain a current density of 10 mA cm −2 without obvious decay for 18 h, indicating that the Co 0.75 Fe 0.25 P is an efficient electrocatalyst for overall water splitting.