A lorry was left hanging over a railway line in Castle Cary after crashing into the bridge.
Bricks tumbled onto the tracks below as the lorry was left precariously balancing on the A371 in the Somerset town.
The accident happened around 9am on Tuesday August 13.
Services from Castle Cary to Westbury and Weymouth have been disrupted, while the mainline has been opened.
The driver was finally freed from the cab after an intricate operation by Devon and Somerset Fire and Rescue and taken to hospital.
Teams were sent to a report of a lorry that had collided with a bridge wall and was overhanging the railway line, with the driver still within the vehicle.
The A371 remains shut in both directions and it's not know when it is likely to reopen.
A lorry has collided with a bridge in Castle Cary causing some disruption this morning.