The recent advancements of ionic liquids (ILs) and deep eutectic solvents (DESs) in the synthesis of cobalt-based catalysts for water splitting is reviewed. ILs and DESs possess unique physical and chemical properties, serving as solvents, templates, and reagents. Combined with calcination techniques, their advantages can be fully leveraged, enhancing the stability and activity of resulted catalysts. In these solvents, not only are they suitable for simple one-step calcination, but also applicable to more complex multi-step calcination, suitable for more complex reaction conditions. The designability of ILs and DESs allows them to participate in the reaction as reactants, providing metal and heteroatoms, simplifying the preparation system of cobalt phosphide, sulfide, and nitride. This work offers insights into design principles for electrocatalysts and practical guidance for the development of efficient and high-performance materials for hydrogen production and energy storage systems.