The invention relates to a preparation method of an N/O double-doped metal carbon coated carbide nanoparticle composite material. The preparation method comprises the following steps: (1) dissolving urea in deionized water, regulating the pH value to 4-7, stirring uniformly, and drying; (2) placing the urea obtained by drying in the step (1) in a nitrogen atmosphere, annealing at high temperature,and cooling to obtain g-C3N4; (3) dissolving a metal atom precursor in deionized water to obtain a solution A, dissolving g-C3N4 in the solution A, performing ultrasonic treatment, and performing freeze drying to obtain a carbide precursor; and (4) finally, uniformly mixing and grinding the carbide precursor and zinc powder, and performing high-temperature annealing and cooling in a nitrogen atmosphere to obtain a target product. Compared with the prior art, the nitrogen-oxygen double-doped graphitized carbon in the catalytic material has the advantages that the conductivity of the catalyst is greatly improved, and dissolution of metal ions in the catalyst can be inhibited so that the catalytic performance, the cycling stability and the like of the catalyst can be greatly improved.