Plants perform photosynthesis, a chemical reaction that occurs in chloroplasts and uses chlorophyll to produce glucose and oxygen from carbon dioxide, water, and light energy. Photosynthesis takes place in plant leaves, where carbon dioxide enters and oxygen exits through small openings, while water and minerals are absorbed by the roots. The glucose produced is used by the plant for energy and building new tissues, or is released through respiration.