Slag is a byproduct of the steelmaking process that forms when impurities such as silica, sulfur, and phosphorous combine with flux materials at high temperatures. It is a non-metallic substance that separates from molten steel during production, helping to purify the steel by trapping these impurities. Slag is typically removed from the steel and can be repurposed in various industries.