The Portpatrick and Wigtownshire Joint Railways was a network of railway lines serving sparsely populated areas of south-west Scotland. The title appeared in 1885 when the previously independent Portpatrick Railway (PPR) and Wigtownshire Railway (WR) companies were amalgamated by Act of Parliament into a new company jointly owned by the Caledonian Railway, Glasgow & South Western Railway, Midland Railway and the London & North Western Railway and managed by a committee called the Portpatrick and Wigtownshire Joint Committee.
The Portpatrick Railway connected Castle Douglas and Portpatrick, opened in 1861 and 1862 and was intended to revive the transit to the north of Ireland through Portpatrick, although Stranraer actually became the dominant port.
The Wigtownshire Railway, which ran from a connection with the PPR at Newton Stewart to Whithorn, opened from 1875.
The PPR route often known as the Port Road, linked Dumfries, via Castle Douglas, with the port towns of Portpatrick and Stranraer. It also formed part of a route by rail and sea from England and Scotland to the north of Ireland.
The line was single track throughout, serving a region of very low population density, but it achieved significance by carrying heavy traffic, both passenger and goods, to and from northern Irish destinations through Portpatrick and Stranraer. The line closed in 1965 apart from the short section from Stranraer Harbour to Challoch Junction, which continues in use as part of the Glasgow - Ayr - Stranraer route.
As early as 1620 Portpatrick had been established as the port for the short sea route between south-west Scotland and the north of Ireland, at Donaghadee in County Down. Irish cattle and horses were a dominant traffic early on, and Post Office mails developed later: by 1838 8,000 to 10,000 letters passed through the port daily, brought by road coach from Dumfries, and from Glasgow. A barracks was erected in the town to facilitate troop movements. However the limitations of the little harbour became serious disadvantages as other more efficient rail-connected routes, via Liverpool, and later Holyhead became dominant. Portpatrick's nearest railhead was Ayr, 60 miles (96 km) away, and the Post Office discontinued use of Portpatrick for mails from 30 September 1849; much of the livestock traffic had already moved to other routes.