Electrolysis is the process which separates the elements of a compound using electricity. A direct electrical current is applied by means of a pair of electrodes connected to an electrical power source which are submerged in a solution. The electrode connected to the positive pole is known as the anode and the one connected to the negative pole is the cathode. Each electrode attracts the ions with an opposing charge. Thus the negative ions or anions are attracted by the anode (positive electrode) and move towards it while the positive ions, or cations, are attracted to the cathode (negative electrode).