An ecosystem includes all of the living things (plants, animals and organisms) in a given area, interacting with each other, and also with their non-living environments (weather, earth, sun, soil, climate, atmosphere).
Biodiversity, a contraction of "biological diversity," generally refers to the variety and variability of life on Earth.