Ecosystems contain both biotic and abiotic components. Abiotic factors, such as water, soil, and atmosphere, are non-living components of an ecosystem, whereas biotic factors, such as plants, animals, and bacteria, are living organisms within an ecosystem.