 It was built by Austria-Hungary from 1900 to 1906 as a part of a new strategic railway, the Neue Alpenbahnen, that would connect Western Austria and Southern Germany with the then Austro-Hungarian port of Trieste.The line starts in Jesenice, at the Southern end of the Karawanks Tunnel; it then crosses the Julian Alps through the Bohinj Tunnel, and passes the border town of Nova Gorica before crossing the Italian border and reaching Trieste.During the First World War, it carried the majority of Austrian military supplies to the Isonzo Front.