In photosynthesis, plants use carbon dioxide and water, with the help of light energy and chlorophyll, to synthesize carbohydrates and release oxygen. Carbon dioxide is the source of carbon atoms in the carbohydrate.