Coastal Ecosystems. Africa has three coastlines—along the Mediterranean Sea in the north, the Atlantic Ocean in the west, and the Indian Ocean in the east. These shores consist of stretches of sand, soil, or rock. In general, plants and animals on Africa’s western coast are less varied and numerous than on the eastern coast. The coastal environments of Africa include coral reef, lagoon, mangrove, salt marsh, and seagrass ecosystems.