Photosynthesis takes place inside plant cells in small objects called chloroplasts. Plants get carbon dioxide from the air through leaves, and water from the ground through their roots. Light energy comes from the sun. Then the oxygen produced is released into the air from the leaves.