The Flåm Line (Norwegian: Flåmsbana) is a 20.2-kilometer (12.6 mi) long railway line between Myrdal and Flåm in Aurland, Norway. A branch line of the Bergen Line, it runs through the valley of Flåmsdalen and connects the mainline with Sognefjord. The line's elevation difference is 863 meters (2,831 ft); it has ten stations, twenty tunnels and one bridge. The maximum gradient is 5.5 percent (1:18). Because of its steep slope and picturesque nature, the Flåm Line is now almost exclusively a tourist service and has become the third-most visited tourist attraction in Norway.
Construction of the line started in 1924, with the line opening in 1940. It allowed the district of Sogn access to Bergen and Oslo via the Bergen Line. Electric traction was taken into use in 1944; at first El 9 locomotives were used, and from 1982 El 11. Until 1991, the train connected with a ferry service from Flåm to Gudvangen. In 1992, freight services were terminated, and due to low ticket prices and high operating costs, the line was nearly closed. In 1998, Flåm Utvikling took over marketing and ticket sale for the track, prices were massively increased and El 17 locomotives were introduced. The trains remain operated by the Norwegian State Railways (NSB), while the line itself is owned and operated by the Norwegian National Rail Administration.