A complex system of plant, animal and microorganism communities that, together with the non-living components, interact to maintain a functional ecological unit.