<p>A coating material is used for coating a substrate by means of laser ablation. The coating material contains graphitic carbon nitride and a dopant in order to alter the properties of the coating produced as compared to a coating of pure carbon nitride.</p>