With the rapid development of aerospace technology, the tribological performance of moving parts under extreme operating conditions has attracted a great deal of attention and interest. The application of solid lubricant coatings has become a major means of improved performance to ensure stable operation. Although molybdenum disulfide (MoS2) and diamond-like carbon (DLC) films have excellent low coefficients of friction, they are prone to failure in vacuum because they cannot overcome the challenges of assembly in atmospheric environments. Surprisingly, unexpected results were obtained in this study using conventional nitride films. Specifically, the friction coefficient of TiN/SiC friction pair in vacuum is 0.21 and the wear rate is 8.8 x 10-7 mm3/mN. The relatively stable friction coefficient is mainly attributed to the formation of carbonaceous lubri-cating layer at the interface, which is the decisive factor in reducing wear. The friction coefficient of TiN/WC friction pair under N2 atmosphere is 0.31 and the wear rate is 4.5 x 10-7 mm3/mN. It can be summarized as follows: first, the mechanochemical induced chemical reaction of the interface, and secondly, the thermally excited nitrogen atoms saturate the dangling bonds of the transfer film. The results further reveal the friction mechanism of TiN films with advanced ceramic materials under harsh conditions and suggest a guide for en-gineering applications.