Matter continuously cycles through an ecosystem. The carbon cycle involves (I) photosynthesis where plants use energy from the sun to convert carbon dioxide and water into glucose and oxygen, promoting the uptake of carbon. (II) Respiration releases energy and carbon dioxide when organisms break down glucose, promoting the release of carbon back into the atmosphere.