When the Edinburgh and Northern Railway was constructed in the 1840s, a junction was built here with lines heading towards Perth and Dundee. An engine depot (of which only the disused locomotive shed survives) and a railway station were constructed at the junction. The station was named 'Ladybank Station' rather than 'Ladybog Station', and the village that developed around the station took the name "Ladybank". The Fife and Kinross Railway, which opened in 1857, used Ladybank as its eastern terminus further increasing the importance of the station. Ladybank railway station remains largely unaltered, and may be the oldest unaltered station in Scotland.