Smelting
A process called "roasting" drives out the unwanted carbon or sulfur in the case of carbonates and sulfides, leaving an oxide that can be directly reduced. In an oxidizing environment, usually, they perform roasting. A few practical examples: Malachite, common copper ore is primarily copper carbonate hydroxide Cu2(CO3)(OH)2. This mineral ...