The development of abundant and cheap electrocatalysts for the hydrogen evolution reaction (HER) has attracted increasing attention over recent years. However, to achieve low-cost HER electrocatalysis, especially in alkaline media, is still a big challenge due to the sluggish water dissociation kinetics as well as the poor long-term stability of catalysts. In this paper we report the design and synthesis of a two-dimensional (2D) MoS confined Co(OH) nanoparticle electrocatalyst, which accelerates water dissociation and exhibits good durability in alkaline solutions, leading to significant improvement in HER performance. A two-step method was used to synthesize the electrocatalyst, starting with the lithium intercalation of exfoliated MoS nanosheets followed by Co exchange in alkaline media to form MoS intercalated with Co(OH) nanoparticles (denoted Co-Ex-MoS), which was fully characterized by spectroscopic studies. Electrochemical tests indicated that the electrocatalyst exhibits superior HER activity and excellent stability, with an onset overpotential and Tafel slope as low as 15 mV and 53 mV dec, respectively, which are among the best values reported so far for the Pt-free HER in alkaline media. Furthermore, density functional theory calculations show that the cojoint roles of Co(OH) nanoparticles and MoS nanosheets result in the excellent activity of the Co-Ex-MoS electrocatalyst, and the good stability is attributed to the confinement of the Co(OH) nanoparticles. This work provides an imporant strategy for designing HER electrocatalysts in alkaline solutions, and can, in principle, be expanded to other materials besides the Co(OH) and MoS used here.