An ecosystem consists of a place or habitat, the living things within it, and the relationships between them. Living things are classified as producers, consumers, or decomposers depending on how they obtain food. Humans obtain natural resources from ecosystems to meet their needs.