The earth's atmosphere traps the heat from the sun, preventing it from escaping into space is the greenhouse effect. This is mainly caused by deforestation. This results in an increase in the average temperature of the atmosphere due to which glaciers start melting and there is a rise in sea level.