The first stage requires light and chlorophyll (located in chloroplasts in plant cells) to split water molecules into hydrogen and oxygen. The hydrogen is transferred to the second stage, but the oxygen is released into the atmosphere as a waste product. The second stage combines carbon dioxide with hydrogen to make glucose.