Photosynthesis takes place in chloroplasts within plant cells. Chloroplasts contain thylakoids where the two key reactions of photosynthesis - the light reactions and dark reactions - occur. The light reactions use energy from sunlight to convert water and carbon dioxide into oxygen and energy-carrying molecules like ATP. The dark reactions then use these energy-carrying molecules to produce sugars from carbon dioxide.