The precipitation phenomena on the surfaces of two types of stainless steels were observed when they were heated at high temperatures in vacuum. One was the precipitation of titanium carbide on the surface of commercial 321 stainless steel, and the other was the precipitation of boron nitride on the surface of laboratory-melted 304 stainless steel doped with nitrogen and boron (304-NB) and that doped with nitrogen, boron, and cerium (304-NBCe). In the case of 304-NBCe stainless steel, a boron nitride layer almost uniformly covered the surface at the early stage of heating. Such surface precipitation phenomena will be applied to control the structure and properties of metal surfaces and will be a promising process for materials design. The titanium carbide film deposited by ion plating on the surface of 321 stainless steel was stable against the thermal cycle. This means that the precipitated titanium carbide could be a bonding agent between ceramics and metals. The surface covered with boron nitride was inert to the adsorption of gas. Therefore, stainless steel doped with nitrogen, boron, and cerium will be a candidate material for vacuum vessels.