Silicon carbonitride films were deposited by PECVD from hexamethyldisilazane. To investigate their surface and to determine the parameters of roughness, scanning probe microscopy was applied. Mechanical properties of the films (hardness, Young's modulus and elastic recovery) were studied by nanoindentation method. It has been found out that hardness and Young's modulus increase along with the growth of deposition temperature. Elastic recovery is close to 100 % at low deposition temperature (lower than 250 °C) and decreases with the rise of synthesis temperature. The results are explained by an increase in concentration of covalent bonds and other changes in chemical and phase composition.