We present a first-principles electronic band structure for pure LiFePO4,{\mathrm{LiFePO}}_{4}, delithiated FePO4,{\mathrm{FePO}}_{4}, and Cr-doped LiFePO4.{\mathrm{LiFePO}}_{4}. It indicates that not only Fe but also O atoms are oxidized in the delithiation process, while P is little affected. This is in contrast to the usual view of the intercalation reaction that the removal of Li only transforms Fe from Fe2+{\mathrm{Fe}}^{2+} to Fe3+,{\mathrm{Fe}}^{3+}, but in agreement with the present x-ray photoemission spect