The first trains climbed from Városmajor to Svábhegy in 1874. In 1890 the rack railway was extended uphill to Széchenyihegy.