Rail transport in Peru has a varied history. Peruvian rail transport has never formed a true network, primarily comprising separate lines running inland from the coast and built according to freight need rather than passenger need.
Many Peruvian railroad lines owe their origins to contracts granted to United States entrepreneurs Henry Meiggs and W. R. Grace and Company but the mountainous nature of Peru made expansion slow and much of the surviving mileage is of twentieth-century origin. It was also challenging to operate, especially in the age of the steam locomotive.
In the latter part of the 1880s, the principal public railways, the Central and Southern, with others, passed to the control of the Peruvian Corporation, registered in London and controlled by Americans Michael and William R. Grace. In 1972 they were nationalized as Empresa Nacional de Ferrocarriles del Perú (ENAFER), but this survived as an operator only until 1999 when most surviving lines were privatized. Regular passenger traffic now operates over only a small proportion of the mileage.
The Tacna-Arica line crosses the boundary with Chile, but has been closed since 2012. The Southern Railway provides connection with Bolivia by ship across Lake Titicaca.
The Central Railway, Ferrocarril Central del Perú (FCC), incorporates the first railway in Peru opened on May 17, 1851 linking the Pacific port of Callao and the capital Lima (13.7 km (8.5 mi) of standard gauge). This was expanded to form the Callao, Lima & Oroya Railway, opened to Chicla by 1878, the original contractor being Henry Meiggs and engineer being Ernest Malinowski assisted by Edward Jan Habich. The line reached La Oroya by 1893 and Huancayo (346 km (215 mi)) in 1908. It is the second highest railway in the world (following opening of the Qingzang railway in Tibet), with the Galera summit tunnel under Mount Meiggs at 4,783 m (15,692 ft) and Galera station at 4,777 m (15,673 ft) above sea level, requiring constructional feats including many switchbacks and steel bridges. Since 1999 it has been operated as the Ferrocarril Central Andino (FCCA) (with its associated maintenance company Ferrovias Central Andina (FVCA)) by the Pittsburgh-registered Railroad Development Corporation. There is no regular passenger traffic but excursions are operated from the Lima Desamparados station. In April 1955 the Central Railway opened a spur line from La Cima on the Morococha branch (4,818 m (15,807 ft) above sea level) to Volcán Mine, reaching an (at the time) world record altitude of 4,830 m (15,850 ft). Both branch and spur have since closed to traffic.