For photosynthesis to occur, the plant must take in carbon dioxide and water. The atoms of these molecules are then rearranged to form one giant molecule of water and some leftover glucose that the plant release as waste. The reaction works only if chlorophyll and chloroplast are present in the plant cell.