In the two-step chemical vapor deposition growth of MoS2, hydrogen plays crucial roles as an inhibitor of the thermal-induced etching effect and as a promoter of desulfurization and oxidation of the obtained MoSx films.