X-ray absorption spectra have been measured for NiO, β-Ni(OH) 2 , R-Ni(OH) 2 , LiNiO 2 , and KNiIO 6 samples, which contain nickel with valency in the range 2-4. Information on the local structure and nature of bonding of nickel compounds has been derived using theoretical standards generated with the FEFF code. The Ni K-edge energy was found to shift to higher values by about 1.5 eV per unit change in valency of nickel. The energy of the preedge peak (generally attributed to the transition from the 1s core states to the 3d unoccupied states) shifts to higher values by about 0.6 eV per unit change in valency of nickel. A many body amplitude reduction factor (S 0 2 ) of 0.77 ( 0.03 for Ni K-edge absorption can be used to scale theoretical spectra to fit the experimental ones in order to accurately determine the coordination numbers for compounds with complex structures. Our results show that chemical effects are very small and can be ignored for reliable structural analysis. Results of local structure for the first, second, and third coordination spheres for NiO are consistent with those derived from X-ray diffraction data. The results for β-Ni(OH) 2 are much closer in agreement with those derived from the neutron diffraction data rather than the X-ray diffraction data. The results for R-Ni(OH) 2 differ significantly from those based on the idealized structure model proposed by Bode et al. In fact, the structure within the hexagonal planes for R-Ni(OH) 2 is similar to that for β-Ni(OH) 2 . The apparent contraction in the Ni-Ni distance of the third coordination sphere for R-Ni(OH) 2 relative to that for β-Ni-(OH) 2 , which was previously reported by others, is not real and can be attributed to structural disorder. The Ni-O bond length for divalent nickel with an octahedral coordination is in the range 2.06-2.08 Å. The first coordination sphere for LiNiO 2 consists of four and two oxygens at 1.91 and 2.06 Å, respectively, rather than six oxygens at 2.04 Å, as predicted by the X-ray diffraction data. The short distance is characteristic of Ni 3+ -O 2bonds and Ni 2+ -O -bonds, while the long distance is characteristic of Ni 2+ -O 2bonds. The local structure for LiNiO 2 is consistent with the fact that the charge-compensating mechanism is largely due to oxygen 2p holes. The Ni-Ni second-shell distance for LiNiO 2 is consistent with that based on the X-ray and neutron diffraction data. The Ni-O bond length for quadrivalent Ni in KNiIO 6 is 1.88 Å. The Ni-O bond length varies with nickel valency in a nonlinear manner.