The ecosystem in which an organism or species lives, including both the physical environment and the other organisms with which it comes in contact.