Disordered multicomponent nitride thin film can be used for various applications. The focus of this Licentiate Thesis lies on the theoretical study of piezoelectric properties, phase stability and surface diffusion in multifunctional hard coating nitrides using density functional theory (DFT).Piezoelectric thin films show great promise for microelectromechanical systems (MEMS), such as surface acoustic wave resonators or energy harvesters. One of the main benefits of nitride based piezoelectric devices is the much higher thermal stability compared to the commonly used lead zirconate titanate (PZT) based materials. This makes the nitride based material more suitable for application in, e.g., jet engines.The discovery that alloying AlN with ScN can increase the piezoelectric response more than 500% due to a phase competition between the wurtzite phase in AlN and the hexagonal phase in ScN, provides a fundamental basis for constructing highly responsive piezoelectric thin films. This approach was utilized on the neighboring nitride binaries, where ScN or YN was alloyed with AlN, GaN, or InN. It established the general role of volume matching the binaries to easily achieve a structural instability in order to obtain a maximum increase of the piezoelectric response. For Sc 0.5 Ga 0.5 N this increase is more than 900%, compared to GaN. Y 1−x In x N is, however, the most promising alloy with the highest resulting piezoelectric response seconded only by Sc 0.5 Al 0.5 N.Phase stability and lattice parameters (stress-strain states) of the Y 1−x Al x N alloy have been calculated in combination with experimental synthesis.Hard protective coatings based on nitride thin films have been used in industrial applications for a long time. Two of the most successful coatings are TiN and the metastable Ti 1−x Al x N. Although these two materials have been extensively investigated both experimentally and theoretically, at the atomic level little is known about Ti 1−x Al x N diffusion properties. This is in large part due to problems with configurational disorder in the alloy, because Ti and Al atoms are placed randomly at cation positions in the lattice, considerably increasing the complexity of the problem. To deal with this issues, we have used special quasi-random structure (SQS) models, as well as studying dilute concentrations of Al.One of the most important mechanisms related to the growth of Ti 1−x Al x N is surface diffusion. Because Ti 1−x Al x N is a metastable material it has to be grown iii iv as a thin film with methods such as physical vapor deposition (PVD), in which surface diffusion plays a pivotal role in determining the microstructure evolution of the film.In this work, the surface energetics and mobility of Ti and Al adatoms on a disordered Ti 0.5 Al 0.5 N(0 0 1) surface are studied. Also the effects on the adatom energetics of Ti, Al, and N by the substitution of one Ti with an Al surface atom in TiN(0 0 1), TiN(0 1 1), and TiN(1 1 1) surfaces is studied. This provides an indepth atomistic understanding o...