An ecosystem refers to the complex set of relationships between living organisms and their non-living environments within a certain area. An agroecosystem is an ecosystem that has been modified and managed by humans to produce food, feed, fiber and fuel. It involves the interaction of various organisms like plants, animals, humans and microorganisms within a defined land area for agricultural production.