Answer:
An ecosystem includes living and nonliving components, while the environment is just nonliving components.
Explanation:
"The difference between environment and ecosystem is that environment is a surrounding where different kinds of organisms live, and on the other hand, an ecosystem is a place where different kinds of biotic and Abiotic creatures live, eat and stay for their daily living"