A coherent layer of the carbide may be adherently deposited on a substrate such as steel by first passing a reactant stream comprising a halide of the metal X and hydrogen as a reducing agent over the heated substrate to deposit a thin layer of the metal X, then adding the carbon monoxide to the reactant stream to produce the metal carbide.