Electrolysis is a process whereby an ionic substance is decomposed into a simpler substance when an electric current is passed through it.
Uses of electrolysis:
Used to purify metals
Used in a process called electroplating, coating one metal in another metal
Used in the production of oxygen, sodium etc
During electrolysis positive ions are attracted to the negative electrode (cathode) and negative ions are attracted to the positive electrode (anode).
For a substance to be an electrolyte, it must be bale to conduct electricity