From 1809 to 1813, during the Napoleonic interlude, Ljubljana (under the name ''Laybach'') was the capital of the Illyrian Provinces. In 1813, the city became Austrian again and from 1815 to 1849 was the administrative centre of the Kingdom of Illyria in the Austrian Empire. In 1821, it hosted the Congress of Laibach, which fixed European political borders for years to come. The first train arrived in 1849 from Vienna and in 1857 the line was extended to Trieste.