An ecosystem consists of all the living and non-living
things in a specific natural setting. Plants, animals, insects,
microorganisms, rocks, soil, water and sunlight are major components of
many ecosystems. All types of ecosystems fall into one of two categories: terrestrial or aquatic.
Hope it could help : )