Electrochemistry is the branch of chemistry that studies the relationship between electrical energy and chemical energy, including their interconversion.
It deals with electrochemical cells, batteries, electrolysis, and oxidation-reduction (redox) reactions.
Galvanic cells convert chemical energy into electrical energy.
Electrolytic cells use electrical energy to drive chemical reactions.