The Baikal-Amur Mainline (Russian Baikal Amur Magistral, BAM) is a railway line in Russia. Traversing Eastern Siberia and the Russian Far East, the 4,234 km (2,305 m.) long BAM runs about 380 to 480 miles north of and parallel with the Trans-Siberian railway. The route of the present-day BAM was first considered in the 1880s as an option for the eastern section of the Trans-Siberian railway. BAM departs from the Trans-Siberian railway at Tayshet, then crosses Angara at Bratsk, crosses Lena, proceeds past Severobaikalsk on the northern tip of Lake Baikal, past Tynda and Khani, crosses the Amur River at Komsomolsk on Amur and finally reaches the Pacific Ocean at Sovietskaya Gavan.

BAM was built as a strategic alternative route to the Trans-Siberian Railway, especially to the vulnerable sections which are close to the border with China. The section from Tayshet to Bratsk was built in the 1930s. Most of the Eastern section was built during the years 1944-1946, mainly by the gulag prisoners, including German and Japanese prisoners of war, of whom possibly as many as 150,000 died. In 1953, following Stalin's death in March that year, virtually all construction work on the BAM stopped and the line was abandoned to the elements for more than twenty years. In March 1974, Soviet General Secretary Leonid Brezhnev stated that a new BAM project would become a huge Komsomol (Young Communist) undertaking. In September 1984, a "golden spike", akin to one used in Utah in 1867, was hammered into place, connecting the eastern and western sections of the BAM. No Western media were invited to attend this historic event as Soviet officials did not want any questions asked about the line's operational status. In reality, only one third of the BAM's track was fully operational at the time of opening. BAM was finally declared complete in 1991.