In this article, we present a study on strain relaxation in AlxGa1−xN layers grown by molecular beam epitaxy (MBE) and metalorganic chemical vapor deposition (MOCVD) on the bulk GaN single crystals (lattice mismatch of –2.5% to 0%) and on the 6H SiC crystals (lattice mismatch of 1% to 3.5%). Both synchrotron and X-ray tube radiation were used for diffractometry (double- and triple-axis) and reflectivity measurements. We found that the layers on SiC relax easier than those grown on GaN. The results show that growth of AlxGa1−xN layers on GaN substrates may provide a method for producing fully strained (i.e., unrelaxed) blue-laser structures.