The invention belongs to the technical field of composite materials, and particularly relates to an Mo / Ni / Co / P / C composite material as well as a preparation method and an application thereof. The material is prepared with the following method: in a three-electrode system, a carbon-based substrate taken as a working electrode, a platinum net taken as an auxiliary electrode and Ag / AgCl taken as a reference electrode are connected with an electrochemical workstation, potentiostatic deposition is conducted in a mixed solution of nickel sulfate with concentration of 30-70 g / L, sodium hypophosphitewith concentration of 20-40 g / L, nickel chloride with concentration of 10-20 g / L, boric acid with concentration of 30-35 g / L, cobalt chloride with concentration of 30-50 g / L and sodium molybdate withconcentration of 40-50 g / L, magnetic stirring is conducted throughout the deposition process, initial potential set on the working electrode during electroplating is (-1.5)V-(-1)V, electroplating timeis 5-30 min, electroplating temperature is set to be 25-35 DEG C, a power supply is turned off finally, and the Mo / Ni / Co / P / C composite material is prepared. The Mo / Ni / Co / P / C composite material is taken as a cathode material of a microbial electrolytic cell to treat coking wastewater and produce hydrogen synchronously, waste is changed into treasure, and a new idea and a new perspective are provided for impending coking wastewater treatment.