In the early 18th century, a railway line ran into the Palacio Real (Royal Palace) to the foot of the staircase.
The Royal Palace has had a railway leading to the entrance since the early 18th century.