Roasting is a process of heating a sulfide ore to a high temperature in the presence of air. It is a step in the processing of certain ores.  More specifically, roasting is often a metallurgical process involving gas–solid reactions at elevated temperatures with the goal of purifying the metal component(s).  Often before roasting, the ore has already been partially purified, e.g. by froth flotation.  The concentrate is mixed with other materials to facilitate the process.  The technology is useful in making certain ores usable but it can also be a serious source of air pollution.
Roasting consists of thermal gas–solid reactions, which can include oxidation, reduction, chlorination, sulfation, and pyrohydrolysis.  In roasting, the ore or ore concentrate is treated with very hot air.  This process is generally applied to sulfide minerals.  During roasting, the sulfide is converted to an oxide, and sulfur is released as sulfur dioxide, a gas.  For the ores CuS (chalcocite) and ZnS (sphalerite), balanced equations for the roasting are:
:2 CuS + 3 O → 2 CuO  +  2 SO
:2 ZnS  + 3 O   →   2 ZnO + 2 SO
The gaseous product of sulfide roasting, sulfur dioxide (SO) is often used to produce sulfuric acid.  Many sulfide minerals contain other components such as arsenic that are released into the environment.
Up until the early 20th century, roasting was started by burning wood on top of ore.  This would raise the temperature of the ore to the point where its sulfur content would become its source of fuel, and the roasting process could continue without external fuel sources.  Early sulfide roasting was practiced in this manner in "open hearth" roasters, which were manually stirred (a practice called "rabbling") using rake-like tools to expose unroasted ore to oxygen as the reaction proceeded.
This process released large amounts of acidic, metallic, and other toxic compounds. Results of this include areas that even after 60–80 years are still largely lifeless, often exactly corresponding to the area of the roast bed, some of which are hundreds of metres wide by kilometres long. Roasting is an exothermic process.