LIMA, Peru — Peru’s government on Wednesday banned buses from a notorious stretch of road where an intercity bus plunged off a cliff and onto a beach on Tuesday, killing 51 passengers in the deadliest traffic accident in Peru since 2013.

Even as emergency workers continued on Wednesday to retrieve bodies from the bus in Pasamayo, anger mounted over the government’s failure to find an alternative to a road so dangerous that for decades it has been called the Devil’s Curve.

The road — a section of seaside highway 40 miles north of Lima, the capital — is often so foggy that drivers cannot see the vehicles in front of them. For 14 miles, it curves 52 times atop a cliff overlooking the Pacific Ocean. In many parts, there is no safety rail.

The accident on Tuesday morning was not the first time the stretch of road has been the scene of fatalities, and two more people died there, in a separate accident, just hours later. Since 1990, at least 20 traffic accidents have occurred there, many of them involving the loss of life.