In 1857, the
Swiss East–West Railway (
Schweizerische Ostwestbahn) planned a railway on the
La Neuveville–
Biel–
Bern–
Gümligen–
Langnau–
Lucerne–
Zug–
Zürich route with a branch from Zug to
Rapperswil, part of which would have formed this line. Since construction had begun without finance having been secured, the company went bankrupt. The
canton of Bern took over the Bernese shares of the line and allowed the work to be completed. The
Gümligen–
Langnau section was opened by the
Bern State Railway (
Bernische Staatsbahn) on 1 June 1864. The
Bern-Lucerne Railway (
Bern-Luzern-Bahn, BLB) took over the section in 1875 and opened the remaining section between Gütsch near Lucerne and Langnau on 11 August. Thus, continuous operations between Bern and Lucerne were possible. But because of excessive construction costs, the BLB had become insolvent, forcing it to be taken over in 1877 by the canton of Bern as the main creditor of the BLB. The canton commissioned the
Chemins de fer du Jura bernois (Bernese Jura Railways, JB) to manage the company. From 1882, the Bern–Lucerne line was then leased by the JB, which changed its name to the
Jura–Bern–Luzern (Jura–Bern–Lucerne Railway, JBL) in 1884. In 1890, the JLB finally went to the newly founded
Jura–Simplon Railway (
Jura-Simplon-Bahn, JS), which also acquired the Bern–Lucerne line from the canton of Bern. With the nationalisation of the JS in 1902, the Bern–Lucerne line became part of the
Swiss Federal Railways (SBB). After the Bern–Gümligen, Obermatt–Langnau and Gütsch–Lucerne sections had been electrified as parts of other lines as early as 1919 and 1924, the majority of the line was electrified on 15 August 1934. New double-track sections went into operation between Worb and Tägertschi, Konolfingen and Zäziwil and Bowil and Emmenmatt at the timetable change on 12 December 2004, enabling an hourly Bern–Lucerne service on this line. ==Operations==