Chemical energy
is required to form ATP
from ADP
and inorganic phosphate
(Pi).
When energy is needed for cellular work, the ATP is broken down to ADP and Pi.
Note that this is not a closed cycle: a continuous supply of energy is needed to regenerate ATP.