Smelting is a process of applying heat to an ore, to extract a base metal. It is a form of extractive metallurgy. It is used to extract many metals from their ores, including silver, iron, copper, and other base metals. Smelting uses heat and a chemical- reducing agent to decompose the ore, driving off other elements as gases or slag and leaving the metal base behind. The reducing agent is commonly a fossil fuel source of carbon, such as coke—or, in earlier times, charcoal. The oxygen in the ore binds to carbon at high temperatures as the chemical potential energy of the bonds in carbon dioxide () is lower than the bonds in the ore. The carbon source acts as a chemical reactant to remove oxygen from the ore, yielding the purified metal element as a product. The carbon source is oxidized in two stages. First, carbon (C) combusts with oxygen (O2) in the air to produce carbon monoxide (CO). Second, the carbon monoxide reacts with the ore (e.g. Fe2O3) and removes one of its oxygen atoms, releasing carbon dioxide (). After successive interactions with carbon monoxide, all of the oxygen in the ore will be removed, leaving the raw metal element (e.g. Fe). As most ores are impure, it is often necessary to use flux, such as limestone (or dolomite), to remove the accompanying rock gangue as slag. This calcination reaction also frequently emits carbon dioxide. Smelting most prominently takes place in a blast furnace to produce pig iron, which is converted into steel. Plants for the electrolytic reduction of aluminium are also referred to as aluminium smelters. Process Smelting involves more than just melting the metal out of its ore. Most ores are the chemical compound of the metal and other elements, such as oxygen (as an oxide), sulfur (as a sulfide), or carbon and oxygen together (as a carbonate). To extract the metal, workers must make these compounds undergo a chemical reaction. Smelting, therefore, consists of using suitable reducing substances that combine with those oxidizing elements to free the metal. Roasting In the case of sulfides and carbonates, a process called "roasting" removes the unwanted carbon or sulfur, leaving an oxide, which can be directly reduced. Roasting is usually carried out in an oxidizing environment. A few practical examples: Malachite, a common ore of copper is primarily copper carbonate hydroxide Cu2(CO3)(OH)2. This mineral undergoes thermal decomposition to