The Great Western Main Line, the railway from London to Bristol, followed a similar route to the canal but further west, passing between Christian Malford and Thornend. The line opened in 1841 and in 1869 station opened at Dauntsey Lock, just over the eastern boundary of the parish. In 1926 a small station, , was opened to serve the village. The station closed in 1965 when local services were withdrawn. The line remains open, with the nearest railway station being at .