Halobacteria are among the most ancient organisms and may have been the starting point for the evolution of photosynthesis. Photosynthesis occurs in plants, algae, seaweeds and certain bacteria through structures like chloroplasts and chromatophores. It converts carbon dioxide and water into glucose and oxygen, providing a basic energy source for life.