The first harbour in Stranraer was built in the mid-18th century, with further port development in the 1820s. The arrival of the railway from Dumfries in 1861 (closed 1965), giving the shortest journey to/from London, finally established Stranraer as the area's main port. In 1862, the line was extended to serve the harbour directly, and a link to Portpatrick was also opened. In 1877, a rail connection north to Girvan and Glasgow was also established. Stranraer remained the main Scottish port for the Irish ferries for the next 150 years or so. On 31 January 1953, 133 people died when the "Princess Victoria" sank near Belfast Lough after its car deck was swamped by heavy seas.