Optical and optoelectronic properties of gallium nitride strongly depend on the synthesis procedure, which may be related to specific structural characteristics of GaN inherent to each preparation condition. Amorphous and nanocrystalline GaN films have been prepared by ion-assisted deposition (IAD). The films prepared at 10 −5 Torr for <50 min have shown exploitable optoelectronic properties, in spite of the high concentration of oxygen of these films (up to 25 at.%). We study here the evolution of the local structure around Ga atoms as the deposition time increases. Five IAD GaN films of thickness ranging between 140 and 450 nm on silicon substrates were analysed by x-ray absorption fine structure (XAFS) at the Ga K-edge. The first and second shells of neighbouring atoms are clearly identified in the radial distribution functions at approximately 1.9 and 3.2Å, respectively. In all of the films, Ga seems to be tetrahedrally coordinated to four nitrogen atoms, some of which may be substituted by oxygen. For deposition times <50 min, analysis of both x-ray adsorption near-edge structure (XANES) and extended x-ray adsorption fine structure (EXAFS) regions indicates that the material is highly amorphous. Above this threshold, a peak corresponding to the first coordination sphere of Ga atoms becomes discernible and increases in intensity for longer deposition times, indicating that the second shell of atoms is now more ordered. The pseudo Debye-Waller factor of the Ga shell is used for monitoring the average degree of amorphization in an ∼100 nm thick top layer, which seems to be related to the film oxygen content. The XAFS results are compatible with a layered distribution of crystallinity, as has been suggested previously for these films.