Route · Slovenia · Italy
Ljubljana–Trieste by train
From Ljubljana to Trieste along the Karst railway, with stops at Postojna, Divača and Sežana and arrival by the Adriatic.
In the photo: Train on the Jelenov viaduct, near Borovnica.
The route
What the Ljubljana–Trieste by train is
The railway leaves Ljubljana across the Ljubljansko barje plain and skirts the slopes between Borovnica and Logatec. After Rakek it reaches Postojna, where you can get off to visit the cave and continue by road to Predjama. The line passes through Pivka before entering the Karst plateau. In Divača, a waymarked trail links the station to the Škocjan Caves visitor centre in Matavun.
From Divača, the train crosses the plateau to Sežana, the starting point for the Lipica Stud Farm. The international regional service crosses the border after Sežana and requires a change of train at Villa Opicina on the Italian side. From there the railway descends toward the gulf to Trieste Centrale. From the station you can continue on foot to the seafront.
The three intermediate Slovenian towns are stops on the international regional services published by the operators. Part of the itinerary may be operated by replacement bus. To visit the caves or the stud farm, check each boarding separately and allow time to return to the station.
The map
Ljubljana–Trieste by train
The journey
City by city
Distances and times are approximate: check before you set off.
-
1 ·Slovenia · Osrednjeslovenska
Ljubljana
Start at Ljubljana station. Check the platform number, as some departures are away from the main station building. If there is a replacement bus, confirm its departure point at the bus terminal before leaving for the station.
→ Postojna about 67 km about 1 h to 1 h 20 min Line 50 leaves the Ljubljana plain, passes Borovnica and climbs in curves along the Verd slopes to Logatec. It continues via Rakek to Postojna. On departures with replacement bus, the change to train may happen at Logatec.
-
2 ·Slovenia · Primorsko-notranjska
Postojna
From the station, follow the signs to the entrance of the Postojna Cave Park. Book your visit and check the road link to Predjama. The park bus runs at specific times and there are parking areas at both the cave and the castle.
→ Divača about 37 km about 35 to 40 min The train continues via Prestranek and Pivka before entering the Karst limestone terrain. The Ilirska Bistrica branch splits off at Pivka. For Divača, choose a service that continues toward Sežana.
-
3 ·Slovenia · Obalno-kraška
Divača
Get off at Divača to visit the Škocjan Caves. The station map shows the waymarked trail of about 4 km to the visitor centre in Matavun. The park estimates 50 minutes walking each way. Book the tour and allow time for the return. There is parking at the visitor centre.
→ Sežana about 10 km about 20 min on international regional services Between Divača and Sežana, the tracks cross the Karst plateau near Povir. Some local trains stop there. On international regionals, check the next boarding before getting off to go to Lipica.
-
4 ·Slovenia · Obalno-kraška
Sežana
Use Sežana as a base for Lipica. Arrange a taxi or check return transport before boarding. The stud farm has its own parking and concentrates guided visits on weekends from November to March.
→ Trieste The Slovenian regional crosses the border to Villa Opicina. There the Trenitalia regional continues on the Italian side, descends from the Carso and reaches Trieste Centrale. When replacement services operate, the final section may be by road, arriving beside the station.
-
5 ·Italy · Friuli Venezia Giulia
Trieste
Disembark at Trieste Centrale and walk along the seafront to Piazza Unità d’Italia and Molo Audace. Leave the climb to San Giusto for a time when the cathedral is not holding a celebration. For Miramare, check the park’s closure schedule, which varies through the year.
How many days
1 day for the crossing. Allow 3 to 4 days to visit two caves, stop in Sežana and explore central Trieste.
Best time to go
From April to June and September to October, combine hikes on the Karst with seafront walks. In July and August, book cave visits in advance. From November to March, check the availability of tours at Škocjan and activities at the Lipica Stud Farm.
The seasons shown are the most usual ones; nature doesn't always follow the calendar.
How to travel it
Search Ljubljana–Trieste Centrale on Slovenske železnice and check the continuation at Villa Opicina on Trenitalia. See whether the date includes a replacement bus and where it boards. To break the journey en route, look up Postojna, Divača and Sežana as destinations for separate segments and check whether your ticket allows trip interruption.
Who it's for
For travellers who enjoy train journeys, visiting caves and finishing in a port city. Walking from the station to the Škocjan Caves adds about a 4 km walk each way.
Your questions
Frequently asked questions about Ljubljana–Trieste by train
Is the train from Ljubljana to Trieste direct?
The international regionals published for the route foresee a change of train at Villa Opicina. In periods of engineering works, also check alternatives with replacement bus.
Which trains stop at Postojna, Divača and Sežana?
Heading toward Trieste, Slovenske železnice regional connections 1824 and 1896 serve all three stations. The 1896 may include a bus to Logatec. Check the service for your chosen date.
At which station do I get off for the Škocjan Caves?
Get off at Divača and follow the waymarked trail to the Matavun visitor centre. It is about 4 km and 50 minutes walking each way.
Can I get off at Postojna and catch another train the same day?
Search the onward journey as a separate trip and check ticket conditions. Allow time to return from the cave or Predjama before your next boarding.
How can I tell if a bus replaces the train?
Check the itinerary for the date and the notices from Slovenske železnice and Trenitalia. On some departures the change is at Logatec or Sežana. The bus boarding point may be outside the station.
Do I need to carry travel documents for the crossing to Trieste?
Yes. Carry the travel document accepted for your nationality and the conditions of the journey. Temporary border checks may occur. Requirements can change: confirm before travelling.
Antarctica