Which type of ecosystem acts like a sponge, filters water, protects people from floods, stores carbon, AND is home to an astonishing array of plants and animals?

Which type of ecosystem acts like a sponge, filters water, protects people from floods, stores carbon, AND is home to an astonishing array of plants and animals?