Photosynthesis is how plants eat. plants/single cell organisms absorb sun light and transfer it into food/energy that it can use, phytoplankton for example use photosynthesis to eat, and they produce oxygen as a by-product of the photosynthesis. Trees and other plants to the same thing.