Castle in Slovenian Istria
Socerb Castle, the stone lookout above the gulfs of Trieste and Koper
- Open
- Daily, with a restaurant
Socerb Castle, or Strmec, is worth more for its setting than for what's inside: a cliff over 350 m high on the edge of the Karst, above the Gulf of Trieste and a few kilometres from Italy. It dates back to the 9th century, lightning set it ablaze in 1780 and it was restored in the 20th century. Today it has a restaurant and opens daily, and next door is Sveta jama, Slovenia's only underground church.
I'd go up late in the afternoon, with the sun sinking over the Gulf of Trieste, and have dinner at the castle restaurant. On a Sunday, I'd plan to be at Sveta jama for 2pm.
Socerb Castle: the quick answer
Full read: 2 min
- Socerb Castle stands on a cliff over 350 m high on the edge of the Karst.
- It overlooks the gulfs of Trieste and Koper, with views as far as Piran.
- Its origins are 9th century; lightning ruined it in 1780 and it was restored in the 20th century.
- Next to it, Sveta jama holds Slovenia's only underground church.
What I would check before going
The practical bit
My notes on Socerb Castle
-
01 Most beautiful
Two gulfs, with Piran in the distance
From the cliff edge you see the Gulf of Trieste and the Gulf of Koper, and the Slovenian Tourist Board says the view reaches all the way to Piran.
-
02 My tip
A church inside a cave
A few steps from the castle lies Sveta jama, a cave 231 m long and 44 m deep holding Slovenia's only underground church. Tours run on Sundays at 2pm.
caves in Slovenia -
03 Getting there
A route through inland Koper
Socerb pairs well with Hrastovlje and Črni Kal, the village with the leaning bell tower, for a morning along the edge of the Karst.
Hrastovlje
Bookings I would make
A lookout over the Gulf of Trieste
Visit Koper places it on a cliff more than 350 m high, by the village of Socerb and a few kilometres from the border between Slovenia and Italy. That position explains its whole history, because for centuries it was a lookout over the sea. From the edge you see the Gulf of Trieste and the Gulf of Koper, and the Slovenian Tourist Board says the view takes in the coastal towns as far as Piran.
From the 9th century to today’s restaurant
The castle, also known as Strmec, goes back to the 9th century and was remodelled and extended many times. In the 14th century it belonged to the Venetian Ducaini family, and in the 16th it was caught up in the conflict between Austria and Venice over the Zaule salt pans. In 1780 a fire started by lightning badly damaged it and it fell into disrepair. It was restored in the 20th century and is now an excursion spot with a restaurant, open every day.
Sveta jama, a church underground
A few steps from the castle, in a small grove, opens Sveta jama, the holy cave. It is 231 m long and 44 m deep, a stream runs through it to feed the springs at Dolina, and it holds Slovenia’s only underground church, set in a natural cavity, with stalactites and a basin carved into the rock.
Legend ties it to St Servulus, a young man from Trieste who converted to Christianity and hid here from the city’s governor. According to tradition he lived in the cave for a year and nine months, drinking from the stream, and became known for healing the sick, until in 283 he was imprisoned and put to death. For centuries the cave was a pilgrimage shrine, and today it can be visited on Sundays at 2pm.
Once your dates are set, check which hotels are still free in Koper before prices climb.
Fitting it into your day
Socerb belongs to the municipality of Koper, and the practical way up is by car from there. I would combine it with the church at Hrastovlje and with Črni Kal, the village with the leaning bell tower of St Valentine’s church, which Visit Koper suggests on the same inland route. With the morning at the Škocjan Inlet reserve and the afternoon here, you have a full day without setting foot on a beach.
If castles across the country interest you, I have ranked them in castles in Slovenia, and if views are what you are after, Socerb also appears among the viewpoints. From the top you look over the Gulf of Trieste, and if you want to cross the border, I explain how to link Slovenia, Italy and Austria.
Once your dates are set, check which hotels are still free in Koper before prices climb.
Socerb Castle through history
| Period | What happened |
|---|---|
| 9th century | First records of the castle |
| 14th century | Owned by the Venetian Ducaini family |
| 16th century | A focal point in the Austro-Venetian dispute over the Zaule salt pans |
| 1780 | A fire started by lightning leaves it in ruins |
| 20th century | Restored and opened as a restaurant and viewpoint |
Visit Koper, Socerb Castle page, checked on 17 October 2026.
Sveta jama, the holy cave
| Fact | Value |
|---|---|
| Length | 231 m |
| Depth | 44 m |
| What is inside | Slovenia's only underground church |
| Tours | Sundays at 2pm |
Visit Koper, checked on 17 October 2026.
Tito Square in Koper with the cathedral bell tower and the Praetorian Palace, and a stone sculpture in the foreground
Lagoons and reed beds of the Škocjanski zatok nature reserve, the brackish wetland on the edge of Koper
Test yourself
What people often get wrong about Socerb Castle
0/3 Pick before you peek.
-
Socerb Castle was ruined by a fire in 1780.
See the answer
True. Lightning caused the fire, and the castle was not restored until the 20th century.
-
Sveta jama can be visited every day at any time.
See the answer
False. Cave tours run on Sundays at 2pm; the castle itself opens daily.
-
You can see the Gulf of Trieste from Socerb.
See the answer
True. The castle was built as a lookout over the sea above the gulfs of Trieste and Koper.
- Height of the cliff, over
- 350 m
- Fire caused by lightning
- 1780
- Length of Sveta jama
- 231 m
- Cave tour, Sundays
- 2pm
Map
Where Socerb Castle is
The Julian Alps, Triglav and the Soča valley lie to the north-west; Ljubljana sits in the centre; the Karst, its caves and the 47 km of coast are to the south-west, and Maribor, Ptuj and the Prekmurje plains to the east. Every number opens its guide.
Frequently asked questions
Where is Socerb Castle?
On the edge of the Karst, by the village of Socerb, in the municipality of Koper and a few kilometres from the Italian border. It stands on a cliff more than 350 m high.
Can you visit Socerb Castle?
Yes, it opens every day and has a restaurant. The visit is mainly the grounds and the viewpoint over the gulfs of Trieste and Koper.
What is Sveta jama at Socerb?
A cave 231 m long and 44 m deep next to the castle, holding Slovenia's only underground church. Legend links it to St Servulus, a young man from Trieste who hid there. Tours run on Sundays at 2pm.
Why is it also called Strmec?
It is its other historic name; Visit Koper uses Socerb Castle and Strmec Castle interchangeably.
What happened to the castle in 1780?
Lightning started a fire that badly damaged it, and it then fell into ruin until it was restored in the 20th century.
0 of 425 Slovenia guides
Your next stamp
- Caves in Slovenia
- Škocjan Caves
- Things to do
- Koper
- Climbing
- Predjama Castle
- Karst
- Bogenšperk Castle
- Bogojina
- Debeli rtič
- Ig pile dwellings
- Jeruzalem
- Kolpa River
- Lake Cerknica
- Lipica
- Ljubljana
- Ljubljana to Bled
- Mariborsko Pohorje
- Mount Snežnik
- Palace Portorož
- Park of Military History
- Plečnik House
- Postojna
- Postojna Cave
- Štanjel
- Tartini Square
- Trbovlje
- Županova jama
- Izola
- Kamnik
- Ljubljana to Postojna
- Lovrenc Lakes
- Maribor
- Portorož
- Things to do in Ljubljana
- Travel guide
- Vilenica Cave
- Zagorje ob Savi
- Celje
- Cerknica
- Domžale
- Hrastnik
- Ljubljana in a day
- Ljubljana to Piran
- Piran
- Slovenian Istria
- Strunjan
- Activities
- Ankaran
- Grosuplje
- Litija
- Ljubljana in two days
- Pivka
- Sečovlje salt pans
- Velenje
- Brežice Castle
- Getting around Ljubljana
- Ilirska Bistrica
- Mežica Mine
- Most beautiful places
- Novo mesto
- Sevnica Castle
- Terme Olimia
- Vrhnika
- Žiče Charterhouse
- Dolenjska
- Ig
- Prettiest villages
- Ptuj
- Sežana
- Divača
- Medvode
- Murska Sobota
- Posavje
- World Heritage
- Hrpelje-Kozina
- Logatec
- Map
- Mengeš
- Brezovica
- Komen
- Savinjska
- Where is Slovenia
- Bled
- Brežice
- Čatež ob Savi
- Celje Castle
- Coal Mining Museum
- Gorenjska
- Hotels in Piran
- Hrastovlje
- Karawanken Geopark
- Koroška
- Kostanjevica Cave
- Kostel Castle
- Krokar primeval forest
- Kurentovanje
- Lent
- Ljubljana Castle
- Ljubljana Cathedral
- Logar Valley
- Oldest vine in the world
- Olimje
- Otočec
- Regions
- Rimske Toplice
- Rinka Waterfall
- Rogla
- Sava River
- Slovenj Gradec
- Topolšica
- Velika Planina
- Goriška
- Krško
- Lake Bled
- Municipalities
- Podravje
- Prešeren Square
- Ravne na Koroškem
- Restaurants in Piran
- Škocjan Inlet
- Volčji Potok Arboretum
- Bled Island
- Cities
- Mežica
- Pomurje
- Sevnica
- Bled Castle
- Coast and Karst
- Dravograd
- Kostanjevica na Krki
- Population
- Notranjska
- Ojstrica viewpoint
- Radlje ob Dravi
- Size
- Central Slovenia
- Language
- Mislinja
- Plečnik's Ljubljana
- Slovenska Bistrica
- Vila Bled
- Currency
- Grand Hotel Toplice
- Ormož
- Zasavje
- EU and Schengen
- Hotel Savica Garni
- Hotels in Bled
- Pohorje
- Haloze
- History
- Restaurants in Bled
- Flag and symbols
- Hoče-Slivnica
- Bizeljsko
- Bohinj
- Christmas in Ljubljana
- City Hotel Ljubljana
- Gorjanci
- Kranj
- Krka River
- Laško
- Moravske Toplice
- Ptuj Castle
- Public holidays
- Rajhenburg Castle
- Šentilj
- Slovenia beaches
- Šmartno pri Litiji
- Uršlja Gora
- Brdo Castle
- Independence Day
- Lake Bohinj
- Ljubljana Festival
- Radenci
- Rogaška Slatina
- Day trips from Ljubljana
- Jesenice
- Lendava
- Podčetrtek
- Savica waterfall
- Time zone
- Dobrna
- Facts
- Ljubljana nightlife
- Ljutomer
- Nova Gorica
- Vogel
- Bohinjska Bistrica
- Gornja Radgona
- Ljubljana Old Town
- Slovenia and Croatia
- Solkan
- Zreče
- Grad
- Sabotin
- Slovenia, Italy and Austria
- Slovenske Konjice
- Stara Fužina
- Trnovo
- Goričko
- Holidays and tours
- Hotels in Bohinj
- Škofja Loka
- Vitanje
- Škofja Loka Castle
- Slovenia or Slovakia
- Šoštanj
- Veržej
- Slovenian phrases
- Slovenia in 3 days
- Bela krajina
- Črnomelj
- Dragon Bridge
- Gorje
- Hiking
- Hotels in Maribor
- Kozjansko Regional Park
- Kranjska Gora
- Lake Ptuj
- Ljubljana Marshes
- Slovenia in 5 days
- Vinarium Tower
- Where to stay in Ljubljana
- Žalec
- Metlika
- Slovenia castles
- Slovenia in a week
- Slovenian Mountain Trail
- Triple Bridge
- Vintgar Gorge
- Vršič Pass
- Where to eat in Ljubljana
- Best viewpoints in Slovenia
- Central Market
- Juliana Trail
- Lake Jasna
- Road trip
- Semič
- Žirovnica
- Kočevje
- Metelkova
- Motorhome
- Museums in Slovenia
- Naklo
- Soča rafting
- Tržič
- Zelenci
- Jezersko
- Kostel
- Lake Planšar
- Skiing
- Slovenia with kids
- Slovenian Alpine Museum
- Tivoli Park
- Best time to visit
- Cerklje na Gorenjskem
- Cycling
- Dolenjske Toplice
- Ljubljanica river
- Mojstrana
- Šenčur
- Krvavec
- National Gallery
- Parenzana
- Peričnik waterfall
- Šmarješke Toplice
- Weather
- National and University Library
- Paragliding
- Slovenia in winter
- Strmol Castle
- Trebnje
- Vrata valley
- Events
- Martuljek waterfalls
- Žale
- Fly fishing
- In January
- Ljubljana museums
- National Museum of Slovenia
- Rateče
- Bovec
- Festival Lent
- Golf
- Hotels in Ptuj
- In February
- Kamnik-Savinja Alps
- Nature parks
- Parking in Ljubljana
- Pekel Cave
- Planica
- Snežnik Castle
- Solčava
- Gornji Grad
- In March
- Kranjska Gora ski resort
- Lakes
- Trenta
- Ziplines
- Alpe Adria Trail
- Hotels in Kranjska Gora
- In April
- Kanin
- Nazarje
- Waterfalls
- In May
- Rivers
- Virje waterfall
- Vransko
- Hotels in Bovec
- In June
- Mountains
- Šentjur
- Dobra Vila Bovec
- In July
- Ljubljana Card
- Mozirje
- Spas
- In August
- Nebesa Chalets
- Rečica ob Savinji
- In September
- Kobarid
- Šmartno ob Paki
- In October
- Kobarid Museum
- Hiša Franko
- In November
- In December
- Radovljica
- Železniki
- In spring
- Museum of Apiculture
- Žiri
- In summer
- Kropa
- Tolmin
- Brezje
- In autumn
- Metaldays
- Tolmin Gorges
- Begunje
- Javorca church
- Slovenia in 10 days
- Most na Soči
- Two weeks in Slovenia
- Idrija
- Ljubljana Marathon
- How to get there
- Idrija mercury mine
- Wild Lake
- Cerkno
- Flights
- Laufarji
- Divje babe
- Franja Partisan Hospital
- Ljubljana Airport
- Ajdovščina
- Nearby airports
- Venice to Ljubljana
- Vipava
- Vipavski Križ
- Zagreb to Ljubljana
- Brda
- Trains to Slovenia
- Getting around
- Šmartno
- Dobrovo Castle
- Trains
- Buses
- Julian Alps
- Car hire
- Triglav National Park
- Driving
- Pokljuka
- Triglav Lakes
- Vignette
- Mount Triglav
- Taxis
- Distances
- Soča Valley
- Soča River
- Trieste to Ljubljana
- Kozjak Waterfall
- Vienna to Ljubljana
- Boka Waterfall
- Budapest to Ljubljana
- Ljubljana to Maribor
- Walk of Peace
- Bled to Bohinj
- Mangart
- Lake Krn
- Prices and budget
- Slovenia on a budget
- Vipava Valley
- Free things to do
- Otlica Natural Window
- Entry requirements
- Rihemberk Castle
- Customs
- Safety
- Scams
- Bears
- Healthcare
- Mobile and roaming
- Plugs
- Packing list
- What to buy
- Hotels
- Campsites
- Farm stays
- Mountain huts
- Food
- Bled cream cake
- Wine
- Potica
- Prekmurska gibanica
- Štruklji
- Carniolan sausage
- Idrija žlikrofi
- Beer
- Tipping
Questions about Socerb Castle? Write to me
If something does not add up or a fact is missing, write to me and I will answer myself.
My email sergiolepone@gmail.com
By
Tourism graduate with a master’s in Tourism Management and Planning from the University of Málaga, who has travelled across Europe. He writes every guide from official sources and his own judgement.
Published on . Updated on . Facts checked on .
Sources
Some links in this guide are affiliate links: if you book through them, the site earns a commission at no extra cost to you. Affiliate disclosure
Photos: Ajznponar (CC0); TICKoper (CC BY-SA 4.0); G0DeX (CC BY 2.0), via Wikimedia Commons.