The invention relates to a cobalt manganese sulfide electrocatalyst and a preparation method thereof. The preparation method comprises the following steps that 1, cobalt salt, manganese salt and ureaare weighed, the weighed cobalt salt, manganese salt and urea are dissolved in water, stirring is conducted, and evenly mixed solution is obtained; 2, the solution and carrier are placed into a reactor together to undergo a hydrothermal reaction, and supported cobalt manganese carbonate is obtained; 3, the supported cobalt manganese carbonate is put into aqueous solution containing vulcanizing agent to undergo a vulcanization reaction, and supported cobalt manganese sulfide is obtained. The cobalt manganese sulfide electrocatalyst and the preparation method have the following advantages that the adopted raw materials are cheap and easy to obtain, the preparation method is simple, operation is easy and convenient, and the cost is low; the manganese element is introduced into cobalt, binarycobalt manganese sulfide is prepared, meanwhile carbon paper, carbon cloth, foam nickel, foam copper, titanium mesh or stainless steel mesh are combined and used as substrate, the two-in-one structureof catalyst and electrode is directly formed, testing is convenient, and the catalyst is endowed with excellent electrochemical catalysis hydrogen evolution or oxygen evolution performance by means of the synergistic effect of cobalt manganese sulfide and the substrate.