Functionality of advanced materials is determined by their electronic structure, [1] which is, on the other hand, related to the crystal structure of materials. [2] In other words, materials parameters are controlled by the structure of matters and modified by deviations from the ideal crystal structure, which is called real structure. Thus, a substantial part of the materials science is devoted to the study of the relationship between the real structure and the physical properties of materials. In these studies, the structure research plays a very important role.The relationship between the materials structure and the materials properties is crucial for low-dimensional structures, which can be produced with a huge variety of microstructures and frequently at thermodynamically unstable conditions that causes large variations in the real structure. A typical task to the structure research is then to explain the observed differences in behaviour of materials having the same or nearly the same chemical composition.This contribution illustrates the capability of the structure research and particularly the capability of the X-ray diffraction to investigate the real structure and microstructure of thin films. The experimental examples illustrate the experimental procedure and the theoretical approach applied to a detailed structure study of nanocrystalline UN thin films grown by the physical vapour deposition (PVD). From the microstructural point of view, cubic UN can be used as a representative compound for other nitrides crystallising with the NaCl structure type like TiN or (Ti,Al)N. The unique position of UN is given by its chemical nature. No destructive analytical method, e.g., the transmission electron microscopy, is desired for uranium compounds, thus the X-ray diffraction is asked to supply as much information on real structure as possible. Concerning the relationship between physical properties and microstructure in the cubic UN thin films, a development of the ferromagnetic component was observed below 100 K, although bulk UN is paramagnetic above 53 K and antiferromagnetic below 53 K. Moreover, the critical temperature varied with deposition conditions Ð in particular with the substrate temperature during the deposition process. As a reason for the observed difference in the magnetic behaviour, variations in the microscopic and mesoscopic structure were anticipated. A distinct influence on the magnetic characteristics was expected due to the crystallite size, because the uncompensated magnetic moments at the crystallite boundaries can produce a ferromagnetic component. On the contrary, our results have shown that the crystallite size does not change significantly in individual samples. Still, large differences among the samples were found in the crystal deformation, which modifies the interatomic distances and consequently the band structure and the magnetic properties of the UN thin films. It is known from earlier experiments [3] that hydrostatic pressure decreases the NØel temperature of the cubic UN, cle...