Funicular

cable railway in which a cable moves permanently attached rail cars up and down a slope
The Peak Tram in Hong Kong is a funicular railway.

A funicular is a railway that uses trains that are pulled by cables wound around a pulley. This makes them able to climb very steep slopes, like those on hills and mountains.