Carbon is released from ecosystems as carbon dioxide gas by the process of respiration. Respiration takes place in both plants and animals and involves the breakdown of carbon-based organic molecules into carbon dioxide gas and some other compound by products. The detritus food chain contains a number of organisms whose primary ecological role is the decomposition of organic matter into its abiotic components.