In the mid-19th 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 mid-1800s.