An ecosystem is a community of living organisms (plants, animals, and microbes) interacting with each other and with the non-living components (air, water, mineral soil) of their specific environment. These biotic and abiotic components are linked together through nutrient cycles and energy flows.
Ecosystems can vary drastically in size, from a microscopic drop of water to a vast ocean, and they are broadly classified into two main categories: