DAKAR, Senegal — When Britain’s Prince Harry retraced his mother’s footsteps Friday in the Angolan city of Huambo, the Duke of Sussex did not walk through a minefield.

Homes and shops have replaced the narrow dirt path that Princess Diana once tread. Gone are the skull-and-crossbones signs, the need to wear a flak jacket. 

But 22 years after Diana’s visit boosted international funding to clear the soil — and 133 countries signed a treaty banning land mines — explosives keep hurting people in more rural stretches of the South African country, which is still grappling with the aftermath of a bloody civil war that ended in 2002.

“Land mines are an unhealed scar of war,” said Prince Harry, whose trip this week highlighted two sides of Angola: urban centers, which have largely recovered, and a countryside where danger persists.

The duke wore jeans as he strolled down a paved road that did not exist in Huambo when his mother landed there in 1997. He donned body armor on another stop about 675 miles south, in the town of Dirico, which still has active minefields.

“By clearing the land mines, we can help this community find peace,” Prince Harry told a crowd in Dirico, “and with peace comes opportunity.”

The United States was Angola’s leading backer as it strove to remove land mines planted during the 27-year conflict, funneling $129 million to the effort since 1993. 

Over the years, however, funding has dried up as battles in Afghanistan, Somalia and elsewhere have grabbed international attention. 

Angola, which is entering its fourth year of recession, is struggling to finish the job. The government recently pledged $60 million toward the cleanup, but that’s not enough to reach its goal of demining the country by 2025.

“At the current rate of funding, Angola won’t be land-mine-free until 2046,” said Alex Vines, head of the Africa Program at Chatham House, a global think tank.

 “There is still a huge amount to do,” Prince Harry told a London audience in June. “The fact that funding has been reduced by 90 percent over the last decade is pretty shocking.”

Safely removing land mines is expensive. Specialists use metal detectors and drones that find irregularities in soil.

When Diana’s helicopter landed in Huambo, the United Nations estimated that millions of land mines were scattered throughout the country, which is the size of Texas and California combined. 

Seven among 37 types of explosives identified in one report during the civil war were manufactured in the United States. Other suppliers included companies in Portugal, Cuba, South Africa and Germany.

About 1,200 minefields remain in Angola, covering 26,000 acres, according to the Halo Trust, the British mine-clearance nonprofit organization that hosted Prince Harry. 

The threat rises during the rainy season in these rural areas. Water pushes land mines into fields people thought were safe.

“These are often the poorest people with less access to social services,” said Ralph Legg, Halo Trust’s program manager in Angola

In July, a man who works for a lumber company stepped on one, according to victim advocates. He remains hospitalized.

At least 88,000 people in Angola have been wounded by land mines, by the Halo Trust’s latest count. The death toll is unknown.

The fight against buried explosives has grown more complicated since Princess Diana put on her flak jacket, said Paul Heslop, the demining specialist who walked her through the field in Angola.

Mozambique, which was also riddled with land mines after a civil war, announced it was clear in 2015 after a two-decade push. But combatants in Iraq and Syria, for instance, have unleashed a deadly era of homemade bombs.

Heslop said he hopes Harry’s visit raises as much awareness as his mother’s.

“Her images were broadcast around the world,” he said, “again and again and again.”