Electrolysis typically takes place in an electrolytic cell, which consists of two electrodes (usually made of inert materials like graphite or platinum) immersed in an electrolyte (a liquid or molten substance that conducts electricity)
Electrodes
The electrodes are connected to a direct current (DC) power supply. The electrode connected to the positive terminal of the power supply is called the anode, and the electrode connected to the negative terminal is called the cathode.
Electrolysis
The passage of a direct electric current through an ionic solution