The invention provides an electrocatalytic hydrogen production porous high-entropy alloy electrode material and a preparation method thereof. The preparation method comprises the following steps: S1,firstly, mixing cobalt powder, chromium powder, iron powder, nickel powder and molybdenum powder, carrying out uniform ball milling by using a planetary ball mill, then adding magnesium powder and carrying out uniform ball milling by using the planetary ball mill, and finally, pressing the mixed powder into a sample blank by using a sample pressing machine; S2, placing the sample blank in a polycrystalline mullite fiber heat preservation barrel, and then placing the heat preservation barrel in a microwave sintering furnace to be subjected to microwave sintering; S3, closing the microwave furnace for cooling along with the furnace, and then closing the microwave sintering furnace, so that the sample is cooled to room temperature along with the furnace to obtain a porous high-entropy alloy;S4, treating the porous high-entropy alloy through cyclic voltammetry for electrochemical activation, thereby preparing the porous high-entropy alloy electrode material. The porous high-entropy alloyelectrode material prepared by the method has the advantages of three-dimensional porous self-supporting structure, high strength, large active specific surface area, low overpotential, small tafel slope, corrosion resistance and the like.