Dear student,
It is the Biosphere part of the earth which supports the biodiversity and not the ecosystem.The biosphere is the sum total of all the huge ecosystems found on earth. Thus, the portion of earth where life occurs along with the air, land and water is called as biosphere.
Regards