An ecosystem comprises two components.
- A biotic (living) environment of living organisms
making up a community.
- An abiotic (non-living) environment of chemical resources and physical conditions of the area, or habitat.
Living organisms may also be ecosystems,
providing habitat for other species.