 It connected the Edinburgh and Hawick Railway at with .The first section of the route was opened between Carlisle and Scotch Dyke on 12 October 1861, to Newcastleton on 1 March 1862, Riccarton Junction on 2 June 1862 and throughout on 24 June 1862.The railway was built as a double-track main line throughout.