A large 760mm narrow-gauge rail network was constructed in the early 20th century, when the Kingdom of Dalmatia as well as Bosnia and Herzegovina were under Austrian control. The rail route to Dubrovnik went from Sarajevo via Mostar and Čapljina rather than to Split and Zagreb in Croatia. In 1967 the line from Sarajevo to Čapljina was upgraded to standard gauge, and from there extended not to Dubrovnik but to terminate at the nearby Port of Ploče, handling freight via Bosnia.