The first photosynthetic organisms probably evolved early in the history of life. They may have used reducing agents such as hydrogen or hydrogen sulfide as sources of electrons, rather than water. Cyanobacteria appeared later, and the excess oxygen they produced contributed to the oxygen catastrophe. This made the evolution of complex life possible.