The hardness of amorphous carbon nitride (CN) was investigated by solid-state nuclear magnetic resonance (NMR) spectroscopy and Fourier transform infrared spectroscopy (FTIR). The results of NMR measurements showed that Equation or symbol description not availablesp2 and/or sp hybrid orbitals controlled the hardness of amorphous-CN films, which had been determined by nanoindentation tests. The intensity of the C-H and CN stretching modes observed in the FTIR spectra was the weakest in the hardest sample. The decreases of Equation or symbol description not available­CH3 and Equation or symbol description not available­CH2 groups indicated that the amorphous network had increased. The Equation or symbol description not availablesp2 hybrid orbital forms a cross-linker which plays an important role in improving of the hardness of the film. © 2004 The Electrochemical Society. All rights reserved.