Replacement bus services have been organised between Edinburgh and Linlithgow after Network Rail announced they were dealing with a fault on he rail near Edinburgh Park.
Hundreds of commuters arrived at Waverley to find trains cancelled, while buses were dispatched to the station to keep them moving.
However, it caused lengthy delays with local bus services, with dozens delayed due to heavy traffic.
ScotRail have since urged passengers to check if their services are running online before setting out on their journey home.
They also warned Network Rail engineers would have to access the track again later on Friday evening.
Sign up to our newsletter: enter your email in the box at the top of this article to get daily updates straight to your inbox.