The geological and environmental conditions of the shoreline result in different habitats. Exposure to currents and waves of the open sea results in the formation of rocky shore and sandy beaches. Sheltered shores, on the other hand, allow sediment from rivers and the sea to settle, and eventually become mangrove forests.