Rail passengers in Fife faced disruption on Tuesday morning after a lorry struck a bridge.
Shortly after 9am on July 4, ScotRail advised passengers that the line between Aberdour and Dalgety Bay was closed after a lorry hit a bridge near the roundabout connecting the A921 with the B9157.
The rail provider added that the bridge would need to be examined by Network Rail engineers to ensure its safety before trains could cross again.
While the incident was ongoing, rail tickets will be accepted on local bus routes at no extra cost, however, ScotRail customers were unable to use their tickets on Stagecoach East services between Inverkeithing and Edinburgh.
At around 9.40am Network Rail confirmed that the bridge had been examined and was safe to reopen.
ScotRail added that while services were able to resume, some alterations may continue whilst the company get their trains and crew back into position.
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country