The complex of living organisms, their physical environment, and all their interrelationships in a particular unit of space. An ecosystem can be categorized into its abiotic constituents, including minerals, climate, soil, water, and sunlight, and its biotic constituents, consisting of all living members.