Electrowinning, also called electroextraction, is the electrodeposition of metals from their ores that have been put in solution via a process commonly referred to as leaching. 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. The resulting metals are said to be electrowon.
In electrowinning, an electrical current is passed from an inert anode through a leach solution containing the dissolved metal ions so that the metal is recovered as it is reduced and deposited in an electroplating process onto the cathode. In electrorefining, the anode consists of the impure metal (e.g., copper) to be refined. The impure metallic anode is oxidized and the metal dissolves into solution. The metal ions migrate through the electrolyte towards the cathode where the pure metal is deposited. Insoluble solid  impurities sedimenting below the anode often contain valuable rare elements such as gold, silver and selenium.