X-ray absorption fine structure (XAFS) was used to investigate the local structures around Ga atoms in the hexagonal nanocrystalline and crystalline GaN under 78 and 300 K. For the first nearest neighbor coordination shell of Ga-N. the average bond length R (0.194 nm), coordination number N (4.0), thermal disorder sigma (0.0052 nm) and static disorder sigmaS (0.0007 nm) are neatly independent of the measured temperature and crystalline state. This indicates that the Ga-N covalent bond is much stronger, and the 4 nitrogen atoms in first nearest neighbor around Ga atoms keep the tetrahedral structure (Td). For the second nearest neighbor coordination shell of Ga-Ga, their bond lengths are about 0.318 nm. However, the sigmaS (0.0057 nm) of nanocrystalline GaN is 0.0047 nm larger than that of crystalline GaN (0.001 nm), and the sigmaT of nanocrystalline is 0.0053 nm and 0.0085 nm at the temperature of 78 and 300 K, respectively. The result indicates that the difference of local structure around Ga atoms between nanocrystalline and crystalline GaN occurs mainly at the Ga-Ga second nearest-neighbor coordination shell. The reason is explained as the local lattice distortion and unsaturated surface atoms existing in nanocrystalline GaN.