The main product of photosynthesis is glucose, which is the molecule that produces energy to run the processes of the cell. Oxygen is mainly a byproduct of the process of photosynthesis. Six molecules ofcarbon dioxide and six molecules of water are needed to produce one molecule of glucose.