Trees absorb carbon dioxide from the atmosphere and release oxygen through the process of photosynthesis. Carbon dioxide is a greenhouse gas that contributes to global warming, so the absorption of carbon dioxide by trees helps to mitigate the effects of global warming.