A novel in situ time-resolved synchrotron X-ray absorption spectroscopy (XAS) was introduced for the dynamic studies during fast chemical and electrochemical delithiation of LiFePO(4). The lithium diffusion in LiFePO(4) and the reaction mechanisms for both processes were investigated. This approach opens new opportunities for dynamic studies of various energy storage systems.