The house where Mame Diarra Ndiaye was born is now 40 meters out to sea. She can point to the spot from the beach of Guet Ndar, the fishing quarter of Saint-Louis that occupies a sandbar between the Atlantic Ocean and the Senegal River, and that the ocean has been dismantling, house by house, for 20 years.

In August, Ms. Ndiaye, her husband and their six children moved to Diougop, a new settlement of low concrete houses eight kilometers inland, built by the government with World Bank financing. They are among 1,550 households, about 15,000 people, relocated since 2022 under what officials describe as the largest planned retreat from a coastline in West Africa.

“Here the sea does not come into the bedroom,” Ms. Ndiaye, 44, said in the courtyard of her new house. “But my husband leaves at 4 a.m. to reach the boat, and the fish do not come to Diougop.”

Saint-Louis, the former colonial capital of French West Africa and a UNESCO World Heritage site, has become a symbol of a coastline in retreat. The Langue de Barbarie, the sand spit that shelters the city, has been eroding at up to six meters a year since a channel cut through it in 2003 to relieve flooding altered the currents. Storm surges in 2017 and 2018 destroyed more than 300 homes and a school. A 3.5-kilometer stone seawall completed in 2023 has slowed but not stopped the losses.

The relocation program, budgeted at $80 million, offers each family a house, a title deed and a small grant. The settlement at Diougop has a school, a clinic and a market, and a planned second phase will add 1,000 more homes. The government has also committed to a daily shuttle to the fishing beach, though residents say it runs irregularly.

The project is watched closely by other coastal cities. From Nouakchott to Lagos, West Africa’s coast is losing an average of 1.8 meters a year, according to a 2025 World Bank assessment, and an estimated 500,000 people live within reach of a one-meter storm surge in Senegal alone.

“Saint-Louis is the first place in the region where the state has said, in effect, we cannot hold this line, and built somewhere else,” said Dr. Abdoulaye Sarr, a coastal geographer at Gaston Berger University in Saint-Louis. “The engineering is the easy part. The hard part is that these are fishermen. Their economy is 200 meters wide and sits on the sand.”

Guet Ndar remains one of the most densely populated places in Africa, with an estimated 30,000 people on a strip less than 300 meters wide, and many residents refuse to leave. Some have rebuilt in the rubble of houses the sea destroyed. Fishermen note that the quarter’s pirogues, which land 40,000 tons of fish a year, cannot be moved inland.

“The government says the sea is coming. We know the sea is coming. We have known since before the government,” said Moustapha Fall, 61, a boat owner who has turned down two offers of a house in Diougop. “But a fisherman who lives eight kilometers from the sea is not a fisherman. He is a man with a long walk.”