Plants and algae use sunlight to make food. They do this with the process of photosynthesis, and they create excess oxygen as a waste product. The oxygen is vital for other living organisms to survive and perform their daily functions. Hope this helps :)