Ecosystem is defined as a well defined unit or area in an environment where biotic and abiotic components interact with each other to maintain balance in nature.
Biotic components – producers, consumers, saprotrophs.
Abiotic components – air, water, sunlight.