When an ionic compound is melted or dissolved, ions can move. In electrolysis a current makes positive ions move to the negative electrode (cathode) and negative ions to the positive electrode (anode).
An electrolysis cell
Molten lead bromide: lead at the cathode, bromine at the anode.
Aluminium is extracted by electrolysis of aluminium oxide dissolved in molten cryolite (lowering the melting point, saving energy). The carbon anodes react with oxygen and must be replaced.
Electrolysis (continued)
Aqueous solutions: at the cathode, hydrogen forms unless the metal is less reactive than hydrogen. At the anode, oxygen forms unless the solution contains halide ions, which give the halogen.
Required practical: electrolysis of aqueous solutions, testing the gases (hydrogen squeaky pop; oxygen relights a glowing splint; chlorine bleaches damp litmus).
Higher Half equations: at the cathode 2H⁺ + 2e⁻ → H₂; at the anode 2Cl⁻ → Cl₂ + 2e⁻.
More practice
Why must ionic compounds be molten or dissolved for electrolysis?
So the ions are free to move to the electrodes.
Read the rest free
4 more points on this page: Electrolysis, More practice.
A free account is all you need. No card, no trial.