Mangroves and saltmarsh are intertidal ecosystems adapted to salty conditions, with saltmarshes preferring the high tide zone.