Ecosystem – A self-sustaining habitat and community
Eco we know means habitat and community
System means self-sustaining

Above is a system that is self-sustaining.
Examples

Ecosystems come in many sizes such as a small individual tree to entire forests or large lakes.

But all the animals and plants in the habitat of an ecosystem live together in a way that is self-sustaining.