In the Netherlands engineers use something called a ‘sand machine’ — a massive manmade peninsula built of sand — that allows waves, wind and tides to more naturally build up beaches along the coast, in part to protect the sea from claiming wetlands.
Lagos has a similar natural landmass, filled with wetlands. Without these barriers the sea/ocean waves would cause havoc both in Netherlands and in Lagos.