Electrowinning, also called electroextraction, is the electrodeposition of metals from their ores that have been put in solution or liquefied. Electrorefining uses a similar process to remove impurities from a metal. Both processes use electroplating on a large scale and are important techniques for the economical and straightforward purification of non-ferrous metals.
See more at Wikipedia.org...
Electrorefining is a method for purifying a metal using electrolysis . An electric current is passed between a sample of the impure metal and a cathode when both are immersed in a solution that contains cations of the metal. Metal is stripped off the impure sample and deposited in pure form on the cathode.