All train services in and out of Edinburgh Waverley have been stopped due to a fault on an overhead line.
Electric trains unable to move have caused congestion on the track meaning diesel-powered services are not able to progress.
Network Rail said teams had to isolate the power supply in the area in order to deal with the overhead line fault between Haymarket and Edinburgh Waverley at around 7.38pm on Friday.
ScotRail said replacements buses were arranged and told customers that tickets could be used on Lothian Buses with Edinburgh and also on trams.
Shortly before 9pm, Network Rail said the station had reopened as investigations into the fault continued.
A spokesperson said: “Our engineers have confirmed that the overhead wires have been damaged on one line between Edinburgh Waverley and Haymarket.
“We’ve managed to reinstate power to other lines between the two stations.”
Glasgow Queen St to Edinburgh via Falkirk High services will only run between Glasgow and Falkirk.
Glasgow Queen St to Edinburgh via Cumbernauld trains will only run between Glasgow and Cumbernauld.
Dunblane to Edinburgh trains will only run between Dunblane and Falkirk Grahamston.
Glasgow Central to Edinburgh via Shotts services will only run between Glasgow and Shotts.
North Berwick services are currently suspended.
Trains running between Edinburgh and Fife, Perth, Dundee, Aberdeen or Inverness can still run on diesel-power but may well be delayed, ScotRail said.