San Francisco has been rated the second-most walkable city in the entire United States, bested only by New York.

But the great walking experience comes with a high price.

Sadly, San Francisco is also one of the most dangerous cities in the nation for pedestrians. From 2010-2016, there were 5,846 pedestrian collisions in the city, leaving 130 dead and more than 6,000 injured, according to the San Francisco Municipal Transportation Agency.

A new study by the law firm of Walkup, Melodia, Kelly and Schoenberger, which teamed up with data visualization company 1Point21 Interactive, analyzed data from 45,000 collision reports in that time period.

It found that more than a sixth of all pedestrian collisions — resulting in 21 fatalities and 892 injuries — occurred at only 63 San Francisco intersections.

In most of those incidents, the driver of the vehicle, not the pedestrian, was at fault. Speeding and illegal turns were the key factors, according to the study.

The downtown Market Street corridor accounted for many of most dangerous intersections. The city's proposed Better Market Street overhaul of the corridor would ban private vehicles and add Muni lines on Market Street between 10th Street and the Embarcadero, presumably making the neighborhood safer for pedestrians. Some of the elements of the plan are already in place, but the city hopes to have a complete overhaul of Market Street done by 2022.

In the meantime, if you are on foot, be vigilant when crossing the street, especially in SoMa, the Mission District and the Tenderloin.

The above gallery shows San Francisco's most hazardous pedestrian intersections, according to Walkup, Melodia, Kelly and Schoenberger's study.

Now Playing:

Dive-bombing birds are making life miserable for some shoppers heading to a supermarket in San Francisco's Castro District.

Media: Brandpoint

We've included the study's Pedestrian Danger Index, which measures total collision, injury severity and fatality figures.