Sulfur is intimately involved in production of fossil fuels and a majority of metal deposits because of its ability to act as an oxidizing or reducing agent.  The vast majority of the major mineral deposits on Earth contain a substantial amount of sulfur including, but not limited to: sedimentary exhalative deposits (SEDEX), Carbonate-hosted lead-zinc ore deposits (Mississippi Valley-Type MVT) and porphyry copper deposits.  Iron sulfides, galena and sphalerite will form as by-products of hydrogen sulfide generation, as long as the respective transition or base metals are present or transported to a sulfate reduction site.  If the system runs out of reactive hydrocarbons economically viable elemental sulfur deposits may form.  Sulfur also acts as a reducing agent in many natural gas reservoirs and generally ore forming fluids have a close relationship with ancient hydrocarbon seeps or vents.   
Important sources of sulfur in ore deposits are generally deep-seated, but they can also come from local country rocks, sea water, or marine evaporites.  The presence or absence of sulfur is one of the limiting factors on both the concentration of precious metals and its precipitation from solution.  pH, temperature and especially redox states determine whether sulfides will precipitate.  Most sulfide brines will remain in concentration until they reach reducing conditions, a higher pH or lower temperatures.  
Ore fluids are generally linked to metal rich waters that have been heated within a sedimentary basin under the elevated thermal conditions typically in extensional tectonic settings. The redox conditions of the basin lithologies exert an important control on the redox state of the metal-transporting fluids and deposits can form from both oxidizing and reducing fluids. Metal-rich ore fluids tend to be by necessity comparatively sulfide deficient, so a substantial portion of the sulfide must be supplied from another source at the site of mineralization. Bacterial reduction of seawater sulfate or a euxinic (anoxic and HS-containing) water column is a necessary source of that sulfide. When present, the δS values of barite are generally consistent with a seawater sulfate source, suggesting baryte formation by reaction between hydrothermal barium and sulfate in ambient seawater.
Once fossil fuels or precious metals are discovered and either burned or milled, the sulfur become a waste product which must be dealt with properly or it can become a pollutant.  There has been a great increase in the amount of sulfur in our present day atmosphere because of the burning of fossil fuels.  Sulfur acts as a pollutant and an economic resource at the same time.