thumb|right|The [[rack railway upper terminus, with the platforms below the car park. The stations of the two funiculars can also be seen.]]

thumb|left|Trains in the underground platforms at the upper terminus.

The Montserrat Rack Railway (Spanish and , ) is a mountain railway line north-west of Barcelona in Catalonia. The line runs from Monistrol de Montserrat to the mountain-top monastery of Montserrat.

The line is long and has a rail gauge of . The first of the line, between Monistrol FGC station and the only intermediate station at Monistrol Vila, is operated by conventional adhesion. The remainder of the line is operated as a rack railway using the Abt system, overcoming a height difference of with a maximum gradient of 15.6%. The line is electrified with an overhead supply at 1500 V DC. and the lightest in February 2004 with 22,996 passengers.

Equipment

The line's most significant engineering work is the Pont del Centenari bridge, which is long and wide, crossing the River Llobregat. Its nine sections are between and long and it was designed as a lattice of steel tubes to give it a light appearance and minimise its visual impact. It is supported by eight pillars with maximum height of .

The line is operated by six low-floor electric motor coaches of type Stadler GTW, built by Stadler Rail in Switzerland. The cars are numbered AM1-AM5 (originally built for Montserrat) and A10 (originally built for Núria Rack Railway; transferred to Montserrat in June 2020) and named after local peaks. These cars are equipped for adhesion and rack propulsion and can each carry up to 200 passengers. They are air-conditioned and have panorama windows offering a good view over the environment. Trains run at up to on the rack section and on the adhesion section. The line also has a 1930 built electric locomotive, E4, transferred from the Vall de Núria Rack Railway for use on works trains.