The specific part or segment of a habitat, or relational position in an ecosystem, occupied by an organism