Electrochemistry is the study of electricity production through released energy from a spontaneous chemical reaction.
The interconversion of chemical energy to electrical energy is encountered in electrochemistry, and all such processes are carried out in electrochemical cell.
Electrochemistry also deals with the nonspontaneous chemical transformation that occurs due to electrical usage.
A large number of metals, compounds, and gases are produced through this process.
Metals such as Sodium, gases like Fluorine, Chlorine, and compounds like Sodium oxide are produced through this process.
By passing the electricity in the electrolysis process the ionic bonds are broken down into the solution and thus the chemical energy is converted into electrical energy.