ScotRail urged passengers to check ahead of time for disruptions, with services between Edinburgh and Dundee, Edinburgh and Kirkcaldy, Edinburgh and Perth, Edinburgh and Glenrothes and Thornton via Dunfermline Town all affected.

National Rail announced at 8am that services between Edinburgh and Inverkeithing were back up and running as normal.

Trains are now running normally between Edinburgh and Inverkeithing following a safety inspection of the track on the #ForthBridge

A statement on the ScotRail website said: "Customers with valid tickets can travel on Stagecoach bus services for the routes between Inverkeithing and Glenrothes where bus services are operated by Stagecoach.

"Please present your ticket to the bus driver on joining bus services. Customers with valid tickets can travel on Lothian bus services for the routes between Dalmeny and Edinburgh where bus services are operated by Lothian buses.