The invention belongs to the field of photocatalysts, and provides a cobalt titanate doped titanium nitride photocatalyst for hydrogen production and a preparation method. The preparation method comprises the following steps: firstly, putting titanium dioxide nanotubes and metal magnesium particles in a reaction kettle for carrying out high-temperature reaction in a nitrogen atmosphere, thus obtaining titanium nitride; then, adding the titanium nitride into an aqueous solution prepared from deionized water and ethanol, thus forming a suspension solution; finally, adding cobalt titanate into the suspension solution, and carrying out centrifuging, filtering and drying/laser sintering after stirring reaction, thus obtaining the cobalt titanate doped titanium nitride composite photocatalyst. According to the preparation method disclosed by the invention, by utilizing the advantages of narrower band gap and good photo-responsiveness in a visible light zone of the cobalt titanate, a p-n heterojunction photocatalyst is formed by compounding the cobalt titanate with the titanium nitride, so that the photo-responsiveness of the titanium nitride is broadened, the photocatalytic efficiency ofthe titanium nitride is increased, and the hydrogen production efficiency is also increased.