What are the four elements of an ecosystem?

The four elements of an ecosystem are: (a) The non-living environment, (b) Producers (green plants), (c) Consumers and (d) Decomposers. The non-living environment of an ecosystem includes sunlight, water, oxygen, minerals, dead plants and animal matter. The producers of an ecosystem are green plants. Animals, both herbivorous and carnivorous are the consumers of an ecosystem. Decomposers are bacteria, fungi and insects that decompose dead plants and animals.