A fun fact a lot of people don’t know about is that the light-dependent reaction in photosynthesis is generating hydrogen from water. They then take that hydrogen plus some carbon in the air and process it into sugars as food. The process leaves a little excess oxygen which it ejects. The sugar can then be burnt alongside some oxygen to generate energy and water, effectively undoing the process.