Since 1868 a horse tramway ran on schedule from the Lánchíd to Zugliget set in operation by the Budai Közúti Vaspálya Társaság (~ Public Railway Society of Buda). Nikolaus Riggenbach (the designer of the first European cog-wheel train line of Vitznau-Rig opened in 1871) with a colleague of his as the representatives of the Internationale Gesellschaft für Bergbahnen applied for the construction of the cog-wheel train line leading to Svábhegy. The building permit was issued on July 3, 1873, and construction of the line began immediately, thus enabling the service to start up in the following year. The first introductory vehicle ran from 4 p.m. on June 24, 1874, and regular traffic began on the following day. The whole line was built according to Riggenbach's cog-wheel system. The normal-gauge single track railway was 2883 m (1.56 miles) long all the way uphill with a difference in height of 264 m. The terminal point was built at the present Városmajor.
Cog-wheel Railway in 2006
Successful operation of the cog-wheel railway raised the issue of extending the line. The plan was brought to fruition in 1890, when traffic started to the Széchenyi Mountain increasing the length of the line to 3700 m. From July 2, 1929, the new electrically powered vehicles ran every 15 minutes. 1973 saw a full reconstruction, during which the whole track was renewed using the Strub cog-wheel system, and new vehicles introduced. The older trains last ran on 15 March 1973 and traffic using the new vehicles began on 20 August of the same year.