The raw materials for photosynthesis are carbon dioxide and water. These are absorbed through the leaves of the plant or tree and allow the plant to produce oxygen and sugar.
The process of photosynthesis requires utilizing energy from sunlight to convert absorbed carbon dioxide and water chemically into sugars that are used as an energy source and oxygen. Plants use their root systems as the primary means of obtaining water. The water is then transported to leaves to be used in photosynthesis. Absorbed carbon dioxide and emitted oxygen can only enter or exit through the plant's stomata due to a layer of waxy material that protects a plant's leaves.