When LIBs is charged, lithium ions are removed from the cathode electrode. The lithium ions then travels through the electrolyte and transfers into the anode electrode, and the energy is stored in LIBs during this cycle.
During discharge the lithium ions move back to the cathode electrode; and the stored energy has been released.