The town is a hub for the rail network to and from Fife-passengers travelling to Edinburgh are carried over the Forth Rail Bridge.
The town is also served by Inverkeithing railway station, a hub for the rail network to and from Fife. Passengers travelling to Edinburgh are carried over the Forth Rail Bridge.