As you know that plants excrete oxygen and inhale carbondioxide and when we do deforestation so , there is disturbance in photosynthesis so the amount of oxygen decreases whereas amount of carbondioxide increases due to which the temperature increases which causes global warming.