The thin films of calcium hydroxyapatite were deposited on a stainless steel substrate modified with titanium nitride (TiN) using an aqueous sol–gel method and characterized by X-ray diffraction analysis. It was demonstrated for the first time that the formation of calcium hydroxyapatite during heat treatment inhibited the formation of Fe2O3 and promoted the formation of TiO2 on the surface.