Forests help in maintaining the ecological balance of the earth by regulating temperature and preventing soil erosion.