Slag is the by-product of impurities remaining after the desired metal is separated from the raw ore. Slag contains a mix of metal oxides and silicon dioxide. However, slags can also include metal sulfides and elemental metals.
Historically, the slag was removed by heating and hammering until the impurities were removed. Today, although these processes still occur, chemicals are also introduced to purify the metal further.