Passing an electric current through electrolytes causes the ions to move to the electrodes. Positively charged ions move to the negative electrode (the cathode), and negatively charged ions move to the positive electrode (the anode). Ions are discharged at the electrodes producing elements.