In an ecological context, phototrophs are often the food source for neighboring heterotrophic life. In terrestrial environments, plants are the predominant variety, while aquatic environments include a range of phototrophic organisms such as algae (e.g., kelp), other protists (such as euglena), phytoplankton, and bacteria (such as cyanobacteria).
Cyanobacteria, which are prokaryotic organisms which carry out oxygenic photosynthesis, occupy many environmental conditions, including fresh water, seas, soil, and lichen. Cyanobacteria carry out plant-like photosynthesis because the organelle in plants that carries out photosynthesis is derived from an endosymbiotic cyanobacterium. This bacterium can use water as a source of electrons in order to perform CO  reduction reactions.
A photolithoautotroph is an autotrophic organism that uses light energy, and an inorganic electron donor (e.g., HO, H, HS), and CO as its carbon source.