Deforestation reduces the number of trees that absorb CO2 and release oxygen, leading to higher levels of CO2 in the atmosphere and increased global temperatures.