The invention discloses a preparation method of a self-assembled ultrathin flower-like nickel cobalt phosphide electrocatalytic material, which is applied to the technical field of electrocatalysis. In the preparation method provided by the invention, a low-temperature hydrothermal-phosphating method is adopted in a preparation process, no additional precipitant is added in reaction, and a nickelsalt and a cobalt salt directly react with a solvent to generate OH-ions, thereby reducing the production cost, simplifying the process and being environmentally friendly. At the same time, an electrocatalytic active substance grown in situ on foamed nickel is directly used as a working electrode, not only avoiding the use of a binder, but also greatly enhancing the electrochemical activity of theactive substance. The self-assembled ultrathin flower-like nickel cobalt phosphide prepared by the method provided by the invention shows good electrocatalytic hydrogen evolution performance in an electrochemical test. In addition, compared with the traditional preparation method, the preparation method provided by the invention has the advantages of simple operation, relatively mild synthesis conditions, energy saving, cheap materials, environmental protection and the like.