An ecosystem includes:
both living and non-living components
An ecosystem is a self-contained unit of living things or biotic componenets (plants, animals and decomposers) and their non-living or abiotic environment (soil, air and water). Abiotic and biotic factors interact with each other to form an ecosystem.