A battery is an electrochemical energy store. When charging or discharging, electrical energy is converted into chemical energy and vice versa.
In non-rechargeable primary batteries, the reactions are irreversible after discharge. The chemical reaction in rechargeable secondary batteries (generally accumulators) is reversible, i.e. they can be charged or discharged multiple times.