The Glasgow, Paisley, Kilmarnock and Ayr Railway had opened in 1841 with the declared intention of reaching Carlisle by way of Dumfries; it did so in 1850, changing its name then to the Glasgow and South Western Railway.