I get vertigo just watching this video.
The pathway is called Caminito del Rey, which means the King's Little Pathway. The king in question is Alfonso XIII of Spain, who walked the path in 1921.
The path was finished in 1905, to be used by workers who were building a hydroelectric plant.
For more details of the pathway see here , here and here