Electrolysis of copper(II) chloride solution

A direct current drives Cu²⁺ to the cathode, where copper plates out, while chlorine gas bubbles off the anode.