A dynamic complex of plant, animal and micro-organism communities and their non-living environment interacting as a functional unit.