During electrolysis. an electric current is passed through an electrolyte. The ions move towards the electrodes, where they react, and the compound decomposes
The positive ions move towards the cathode and gain electrons (reduced)
Negative ions in the electrolyte will move towards the anode and 10 se electrons (oxidised)
As ions gain or lose electrons, they form the uncharged element and are discharged from the electrolyte
Electrolysis of molten ionic solids forms elements
An ionic solid can't be electrolysed because the ions are in fixed positions and can't move
Molten ionic compounds can be electrolyted because the ions can move freely and conduct electricity