Branch of biology dealing with the relations and interactions between organisms and their habitat, including other organisms.