The Castle Douglas and Dumfries Railway was a railway in south west Scotland which linked Castle Douglas in Kirkcudbrightshire to Dumfries. It opened in 1859. Other companies' lines extended westwards and southwards, and the CD&D line formed a key link in opening up the agricultural area of south-west Scotland. When Stranraer and Portpatrick were reached by the contiguous lines, the CD&D line was the eastern section of the Port Road, which provided an important route from English originating points to Northern Ireland by ferry between Portpatrick and Donaghadee. Much later the ferry route was from Stranraer to Larne. The CD&DR was absorbed by the larger Glasgow and South Western Railway in 1865. The line was one of the 1965 Beeching closures, except for a stub from Dumfries to Maxwelltown Oil Terminal which continued until 1994, although it was dormant in the latter years. Nothing now remains of the rail activity on the line. History Authorisation and construction In the middle of the nineteenth century the counties of Galloway, Wigtownshire and Kirkcudbrightshire were devoted to agriculture, but lacked efficient land communications links with the rest of the United Kingdom. Mail from the northern part of England, and Scotland, to Ireland passed this way through the ports of Portpatrick and Donaghadee, but the poor roads made the passage difficult. The Glasgow, Dumfries and Carlisle Railway (GD&CR) was authorised in 1846 and the authorisation appears to have included a branch from Dumfries to Kirkcudbright, but the shortage of money at that time led to abandonment of the plans for the branch. The opening of the Chester and Holyhead Railway in 1850 induced the Post Office to transfer the mail to that route. In the same year the GD&CR merged with other lines to form the Glasgow and South Western Railway (G&SWR). The directors of the G&SWR sought to open up the area, with a view to regaining the mail traffic in due course. The G&SWR also wished to forestall any incursion into the area by the rival Caledonian Railway. The G&SWR line passed through Dumfries on its route from Carlisle to Glasgow, and the Company had a line from Glasgow to Ayr. Both points were a considerable distance from Portpatrick, and when local interests promoted a railway connecting Castle Douglas to Dumfries, the G&SWR encouraged the scheme, seeing it as a first step in its plans. The G&SWR encouragement took tangible form in