Wallyford has a station on the Edinburgh - North Berwick railway line, operated by First ScotRail. The town was initially populated by coal miners and later grew as an overspill / commuter town for workers from Musselburgh and Edinburgh. Victorian writer, Margaret Oliphant, was born in Wallyford on 4th April, 1828. Among her best known works were, 'Katie Stewart', 'The Carlingford Chronicles' and 'Tales of the Seen and Unseen'. She died in Wimbledon on 25th June, 1897 and was buried in Eton Cemetery near Windsor.