An ecosystem is the interacting system of a biological community and its non-living physical environment. It includes biotic factors like organisms and biotic factors like air, water, and mineral soil. Ecologists study ecosystems and the interactions between organisms and their environments, including food chains, nutrient cycles, and relationships between species like predator-prey dynamics. Examples of ecosystems discussed include rainforests, which have structural layers and species that depend on each other for survival.