The Wymondham to Wells Branch was a railway built in stages by the Norfolk Railway, Eastern Counties Railway and Wells and Fakenham Company between 1847 and 1857. The railway ran from Wymondham in the south, through Dereham and Fakenham to the coastal town of Wells-next-the-Sea; more specifically, the line ran from Wymondham South Junction, where it met the present-day Breckland Line. Passenger services along the line lasted until 1969; the railway continued to be used for freight until 1989. The southern section of the railway now forms the Mid-Norfolk Railway, with part of the northern section serving as the narrow gauge Wells and Walsingham Light Railway.
The Lynn and Dereham Railway and the Norfolk Railway both obtained Parliament's permission to build lines to Dereham in 1845, at the height of the so-called "Railway Mania", when railways were being built across the whole country. The Norfolk Railway, building its line from Wymondham, reached Dereham first, and opened its railway to passengers on 15 February 1847; the line from King's Lynn had to wait until 11 September 1848.
The King's Lynn line was originally operated by the Lynn & Dereham Railway, but in 1848 the Eastern Counties Railway leased the Norfolk Railway and both lines were absorbed. In 1857 the line between Dereham and Wells opened. The entire line became part of the Great Eastern Railway in 1862. The line between Wymondham and Dereham was provided with double track in 1882, the line north of there remaining single track. The intermediate stations were rebuilt as part of the 1882 doubling scheme, being provided with new up platforms and additional glass-fronted buildings and canopies on the original down platforms.