Purple sulfur bacteria are a type of photosynthetic bacteria that perform anoxygenic photosynthesis. They contain bacteriochlorophyll which absorbs infrared light and uses hydrogen sulfide as an electron donor, producing sulfur as a byproduct instead of oxygen. There are two main types, Chromatiaceae and Ectothiorhodospiraceae, which differ in where they produce sulfur particles. Purple non-sulfur bacteria are similar but use hydrogen instead of hydrogen sulfide and do not produce sulfur. Green sulfur bacteria also perform anoxygenic photosynthesis but appear greenish in color and can use hydrogen or thiosulfate instead of hydrogen sulfide.