Answer:
Electrolysis is a process in which an electric current is used to drive a chemical reaction that would not otherwise occur.
When an electric current is passed through the cell, the ions in the electrolyte solution are attracted to the electrodes and undergo a chemical reaction at the surface of the electrodes.
hope this helps :)