Sulfur reacts with oxygen to form sulfur dioxide. When nonmetals reactwith one another, the product is a molecular compound. Often, the nonmetal reactants can combine in different ratios and produce different products. Sulfur can also combine with oxygen to produce sulfur trioxide.