The Emperor Franz Joseph Railway (German: Kaiser-Franz-Josephs-Bahn, KFJB) was an Austrian private railway company, named after Emperor Franz Joseph I. It operated railway lines from the Austrian capital Vienna to Prague and Eger (Cheb) in Bohemia.
The stock company (Aktiengesellschaft) was founded by the Bohemian noble Prince Johann Adolf II of Schwarzenberg (1799–1888), a brother of former State Chancellor Prince Felix of Schwarzenberg, who had a first 455 km (283 mi) long railway line built from Vienna to Eger, starting after the Austro-Prussian War of 1866. The groundbreaking ceremony was held on November 18 near Schwarzenberg's Frauenberg Castle in Bohemia. The first section between Budweis (Budějovice) and the Pilsen (Plzeň) coal basin was inaugurated on 1 September 1868. It was extended to Eggenburg in Lower Austria on 1 November 1869 and train service to Vienna began on 23 June 1870. The railway line from Vienna via Gmünd to Prague was completed by 14 December 1871. When the northwestern branch was extended from Pilsen to Eger on 28 January 1872, the KJFB network comprised 715 km (444 mi).
In 1872, Vienna Franz Josef Station was opened as the first terminal station inside the former Linienwall in the district of Alsergrund, inside the Gürtel. It crossed the Danube at Tulln and extended from there to Krems and to the border with Bohemia at Gmünd. In Bohemia, it continued through Budweis, Tábor and Benešov to Prague. Prague's present main station originally belonged to the Franz Josef Railway company. Various district capitals are only connected to it by bylines.