Electrolytes are substances that can conduct electricity in the molten or liquid state and undergo chemical changes. Electrolysis is a process where electrolytes are broken down into their constituent elements by passing electricity through them. During electrolysis, ions migrate to the oppositely charged electrodes. At the anode, ions lose electrons and form gases or dissolve. At the cathode, ions gain electrons and form solid elements. Examples of electrolysis of molten lead(II) bromide and lead(II) oxide are described through their half reactions at the anode and cathode and overall reactions.