How is sulfur dioxide gas made?

Sulfur dioxide gas is typically produced by burning sulfur or sulfur-containing compounds in the presence of oxygen. It can also be generated as a byproduct of metal smelting processes and from the combustion of fossil fuels containing sulfur.