An ecosystem is a complete community of living organisms and the nonliving materials of their surroundings. Thus, its components include plants, animals, and microorganisms; soil, rocks, and minerals; as well as surrounding water sources and the local atmosphere. The size of ecosystems varies tremendously
hope it helps