They use it to react carbon dioxide with water to make a sugar called glucose. The glucose is used in respiration, or converted into starch and stored. Oxygen is produced as a by-product. This process is called photosynthesis.
The oxygen is released into the atmosphere and the glucose is stored and used by the plant.
Hope this helps and don't forget to hit that heart :)
7.3m questions
9.7m answers