Slovenian Railways operate 1,229 km of tracks, 504 km of which are electrified.
People of Slovenia received its first railway in 1840s, when Austro-Hungarian Empire built the railway connection between its capital, Vienna, and its major commercial port, Trieste. Thus, Celje was connected by railway in 1846, Ljubljana in 1849 and Trieste in 1857. In the era before WW I, numerous other railways were built. After WW I, and in particular after WW II, very few new lines were built, the only exception being the line to Koper, built in 1976.