The Somerset and Dorset Railway (S&D) was created in 1862, as an amalgamation of the Somerset Central Railway and the Dorset Central Railway. By the following year, it ran from Burnham-on-Sea in Somerset to Wimborne in Dorset. From Wimborne, the S&D trains could use a line owned by the London and South Western Railway (LSWR) to reach Hamworthy on the South Coast. It was anticipated that substantial traffic would be attracted to this cross-country link between the Bristol Channel and the English Channel. When this failed to materialise, the company, which was already in dire financial straits, decided to gamble everything on one last desperate bid for increased traffic, and built an extension from Evercreech Junction to Bath to join up with the Midland Railway. This new line provided a through route for traffic between the Midlands and North of England, and the South Coast. It produced a substantial increase in traffic, but too late to save the company, which went into receivership, and in 1875 it became jointly owned by the Midland Railway and the LSWR, and was renamed the Somerset and Dorset Joint Railway (S&DJR). After the 1 January 1923 Grouping, joint ownership of the S&DJR passed to the London, Midland and Scottish Railway (LMS) and the Southern Railway.