Sulfur is an essential element for the macromolecules of living organisms. As part of the amino acids cysteine and methionine, it is involved in the formation of proteins. It is also found in several vitamins necessary for the synthesis of important biological molecules like coenzyme A. Several groups of microbes are responsible for carrying out processes involved in the sulfur cycle. Anoxygenic photosynthetic bacteria as well as chemoautotrophic archaea and bacteria use hydrogen sulfide as an electron donor, oxidizing it first to elemental sulfur (S0), then to sulfate (SO42-). This leads to stratification of hydrogen sulfide in soil, with levels increasing at deeper, more anaerobic depths.
Many bacteria and plants can use sulfate as a sulfur source. Decomposition dead organisms by fungi and bacteria remove sulfur groups from amino acids, producing hydrogen sulfide, returning inorganic sulfur to the environment.
Parker, N., Schneegurt, M., Thi Tu, A.-H., Forster, B. M., & Lister, P. (n.d.). Microbiology. Houston, Texas: OpenStax. Access for free at: https://openstax.org/details/books/microbiology