Predjama Castle: attacks and sieges
Written 22 November 2026.
In brief. Predjama, then called Jama or Lueg,1 was attacked once that we know of: the emperor's siege of its lord Erazem in 1483 to 1484. It was not stormed. The siege dragged on because the garrison was fed through a passage in the rock,1,2 and it ended only when Erazem was killed by a shot and his family gave the castle up.1 Almost everything else that is told about it (the robber knight, the bribed servant, the cannon ball that found him in the privy) comes from later writers and from folk tradition, not from the sources of his own time.1 The castle that was besieged is also not the one that stands today: the present building dates from about 1570.3,4 No later attack is recorded in the sources read.
At a glance
| When | Attacker | Defender | Numbers | How it was fought | Result |
|---|---|---|---|---|---|
| Late 1483 or early 1484, to 14841 | Forces of Emperor Frederick III. The chroniclers of the time name the governor of Carniola, Wilhelm of Auersperg, and his deputy Christoph von Thein; later tradition names Gašper Ravbar, governor of Trieste1 | Erazem of Jama (Erasmus Lueger) and his garrison | Not given for either side. Thein wrote that he had three great guns1 | Blockade to starve the castle, defeated by a hidden passage; gunfire1,2 | Taken: Erazem shot dead, the castle surrendered by his brother and widow1 |
| 1511 | None: an earthquake3,4 | - | - | Not an attack | Castle ruined4 |
| 1567 and after | None: pledge, purchase, inheritance, sale5,6 | - | - | Not attacks | Changes of owner |
| Second World War | None recorded. Partisans used the castle7,8 | - | Not given | No fighting at the castle is recorded in the sources read | Nationalised in 19454 |
1483 to 1484: the emperor's siege (taken, after its lord was shot)
The castle stood under a natural arch of rock high in a cliff, hard to reach,3 in front of a cave system that runs beneath it.4 Erazem's family, the knights of Jama, had held it without a break since 1398.1 Until 1483 he looks like an ordinary nobleman in the emperor's service: he received fiefs, held the castle of Kamnik for the emperor from 1479 to 1482, and quarrelled with the townsmen there over a toll.1
Then something went wrong, and the best witness admits he does not know what. Jakob Unrest, a chronicler writing in Erazem's own lifetime, says only "Aus was ursach ways ich nicht"1 (for what cause I do not know). Erazem's nephew Sigismund von Herberstein, writing about 1560, says he stabbed a marshal of the Pappenheim family at court, had to leave, and then struck the emperor's deputy in Ljubljana.1 He and a brother were locked up in Ljubljana castle; Erazem got out and reached Jama.1
The emperor ordered the castle besieged.1 The besiegers could not get in, and they could not starve it either. A passage in the rock, about 40 metres long and 1 to 2 metres wide, comes out in a hollow only 25 metres from the edge of the cliff,1 and through it the garrison stayed in touch with the world outside, which is to say with food.1 Unrest says the army lay before the castle "eyn lange zeyt"1 (a long time).
It ended with one shot. Unrest: "Do wardt herr Erasmus mit ainer hanndtpuchsen durch ein venster erschossen"1 (then lord Erasmus was shot through a window with a gun). Those inside hid his death for some days. Then his brother and his widow handed the castle over, though it was still being defended, which Unrest thought strange.1 The emperor took the castle, the lordship and all Erazem's other fiefs.1
The record
Who and why. Emperor Frederick III against Erazem, the eldest son of Nikolaj of Jama,1 whose family were also called Lueger.1,2 On the cause the sources differ:
- Unrest, the contemporary, does not know it.1
- The Herberstein family chronicle gives the killing of a Marshal Pappenheim at court, a blow struck at the provincial administrator Christoph von Thein in Ljubljana, imprisonment and escape.1 The historian Andrej Nared calls the Pappenheim episode one of the most likely parts of the story.1 The national biography is less sure of the version in which he killed Pappenheim for insulting his friend Baumkircher: "Zgod. ni izpričana Valvasorjeva zgodba"2 (Valvasor's story is not historically attested).
- Siding with the Hungarian king Matthias Corvinus, who was at war with the emperor. Of the sources, only the two seventeenth-century writers Bavčer and Valvasor say so.1 Bavčer adds, as hearsay, that in December 1483 "2000 Madžarov"1 (2,000 Hungarians) came over the Karst to Trieste on Erazem's advice and were driven off.1 The biography dates his support for Matthias from 1478.2 Another account has him attacking Trieste himself: he "attacked the town of Trieste twice and defied the imperial army for quite a long time".4
- Robbery of merchants on the road to Trieste. The biography states it as fact and says that complaints forced the emperor's order in 1483.2 Nared points out that Valvasor is the only source that calls Erazem a robber ("Valvasor edini vir, ki o njem govori kot o roparju"1) and that the sources he builds on are silent about it.1
- Who led the siege. Unrest says the emperor gave the task to his governor in Ljubljana, Wilhelm of Auersperg, with the men of Carniola; Christoph von Thein's own memoir says he lay before the castle as chief captain.1 The name everyone knows, Gašper Ravbar, governor of Trieste, comes from Bavčer and Valvasor, and Bavčer gives it as something people say.1 Nared thinks the commanders may have changed over a long siege, or that there were several, and notes that the more reliable sources favour the two Carniolans.1 The biography2 and both Wikipedia articles follow the Ravbar tradition; one of them calls him "Gaspar Ravbar"9 and the other "Andrej Ravbar".3 Some older histories name Nikolaj Ravbar instead.1 Both Ravbars were married to sisters of Erazem.1
- When. Nared puts the start at about the end of 1483 or the beginning of 1484.1 The biography says autumn 1483.2 For the end, the biography says "v pozni pomladi 1484"2 (in late spring 1484), while Nared says "Jeseni 1484 je bil Erazem ubit s topovskim strelom skozi grajsko okno"1 (in autumn 1484 Erazem was killed by a cannon shot through a castle window), citing a charter of 27 November 1485.1 The castle's managers speak of a knight "who withstood the imperial army's siege of the castle for over a year",10 and call that a legend.10
- Tactics. Blockade to starve the garrison out: the biography says Ravbar wanted to starve Erazem and his men.2 Against it, the passage. Guns: Thein says he had three great guns before the castle.1 No assault on the walls is recorded in the sources read.
- The shot. Unrest's word, as Nared prints it, is "hanndtpuchsen",1 which looks like a hand gun and not a cannon; that reading is ours, and Nared himself writes of a cannon shot.1 Herberstein says only "ward zu Lueg belegen vnd darin erschossen"1 (was besieged at Lueg and shot inside it). Nared's judgement: "Erazem je bil verjetno zadet povsem slučajno"1 (Erazem was probably hit quite by chance). The archaeologist Alfons Müllner thought he was probably killed while visiting a guard post.1
- Numbers. Not given for either side in any source read. The biography says Ravbar came with the civic guard of Trieste, without a figure.2 Thein's three guns are the only count.1 In the legend a dozen loyal men were buried with Erazem;1 that is a tale, not a count.
- Outcome. The castle was given up after Erazem's death, and Thein wrote that the emperor rewarded him with 200 Hungarian florins for winning it.1 Erazem's property "prešla v cesarsko last"2 (passed into the emperor's ownership). One account says the "first castle was seized by the Habsburgs and consequently damaged";4 Wikipedia speaks of "the siege and destruction of the original castle".3 How much was destroyed, and when, the sources read do not say.
The legend and the record
The famous version was written down by Valvasor in 1689, two centuries after the event, from older writers and folk tradition.1 Nared's article of 1998 goes through it against the sources of Erazem's own time. This table follows him unless another note is given.
| The story | Where it comes from | What a source of the time says |
|---|---|---|
| Erazem was a robber knight, even a Robin Hood | Valvasor alone calls him a robber;1 the Robin Hood figure is later still1 | Nothing. No document of his crimes survives1 |
| The castle was supplied through a secret passage | Valvasor and Bavčer, who make it far longer than it is1 | The passage exists: "Ta rov je dolg okoli 40 m, širok 1-2 m"1 (this passage is about 40 m long and 1 to 2 m wide). Nared accepts that it fed the garrison.1 The biography is more careful: "baje vodil skrivni podzemski rov"2 (a secret underground passage is said to have led out) |
| The besieged threw down an ox, live sheep, cherries and fish to mock the besiegers | Valvasor1 and popular retellings11 | Nothing. Nared: the passage allowed them to hold out, not that kind of plenty1 |
| A bribed servant marked the spot and gave a signal with a light | Bavčer and Valvasor, drawing on folk tradition1 | "Noben starejši vir izdaje ne omenja"1 (no older source mentions a betrayal). The castle was handed over by the family, still defended, days after the death1 |
| He was killed in the privy | Valvasor's joke about an errand that even the Turkish emperor cannot send a deputy on1 | Unrest: shot through a window.1 Nared: the privy "se ne da preveriti"1 (cannot be checked) |
| He was killed by a cannon ball | The usual telling; one Wikipedia article says "by a shot from a cannon or catapult"9 | Unrest's word looks like a hand gun (our reading, above)1 |
Later tellings do not agree with each other either. The national biography keeps the betrayal by "nekega grajskega hlapca"2 (some castle servant) and has Erazem die under a falling wall.2 The public broadcaster keeps the bribe and the candle in the window but says the besiegers "started a false rumor that Erasmus had died while on the toilet".8 Slovene Wikipedia says the same and adds that the part of the castle with the privy had not yet been built.7 Both English Wikipedia articles call the betrayal and the privy "a popular but unfounded legend".3,9 The castle's managers tell it as legend: "Erazem reportedly died while using a toilet after a betrayal by his servant".10 Nared's own summary, in German, is that the death "war aber sicher nicht die Folge eines Verrats"1 (was certainly not the result of a betrayal).
Changes of hands without fighting (not attacks)
- Before 1483. The castle is first mentioned in 1274,1,3,4 under the Patriarchs of Aquileia.1,4 Nared says the Habsburgs bought it in 1368 and that the burgraves of Lienz, Erazem's family, had it from the end of the fourteenth century.1 No fighting is recorded for these years in the sources read, though one account says the castle "was notorious"4 as a "hide-out of brigands"4 even before Erazem.
- 1484. Confiscated by the emperor, as above.1,2
- 1511. A new castle built by the Purgstall family "was destroyed in an earthquake".3 Another account: "the legendary earthquake in 1511 ruined the castle".4
- 1567. Johann Cobenzl "took the castle and the seigniory in pledge and purchased them two decades later as a freeholding".5 The Cobenzls built the Renaissance castle that stands today, under the overhang where the medieval one had been;4 Wikipedia gives 1570,3 and Nared says the present look dates from 1570 to 1583.1
- 1810. The Cobenzl line ended and the castle passed by inheritance to the Coronini family.3,5
- 1846. "Countess Sophia Coronini sold Predjama Castle to Prince Weriand von Windisch-Graetz".6 His family "saved the decrepit, damp, and hardly accessible castle from ruin".6
Second World War (no attack recorded)
The castle was used by the Partisans, the Yugoslav resistance. The public broadcaster says it "served as an important base for the Partisan resistance".8 Slovene Wikipedia says the castle held "sodišče in partizanska tiskarna"7 (a court and a Partisan printing press), and that a Partisan unit, the Jesenice-Bohinj detachment, was formed there on 30 August 1944.7
None of the sources read records an attack on the castle, a defence of it, or damage to it in the war. In 1945 it was "nationalised by Yugoslav authorities and turned into a museum".4
What held and what failed
| Tactic | Used against Predjama | Did it work? |
|---|---|---|
| Blockade to starve the garrison | 1483 to 1484 | No: the castle was fed through the passage in the rock1,2 |
| Assault on the walls | None recorded in the sources read | Not tried, as far as these sources say. The biography calls the castle "praktično nezavzetni grad Jama"2 (the practically untakeable castle of Jama) |
| Gunfire | 1484 | It killed the lord, probably by chance,1 and that ended the siege. Nothing read says the guns breached the castle |
| Bribing a servant | 1484, in the legend only | Not in any source of the time1 |
| Killing the commander | 1484 | Yes: the family surrendered a castle that was still being defended1 |
The passage that fed the castle can still be seen: the cave "features a secret tunnel leading out into the open".10
Not yet established
- Who commanded the siege: Auersperg and Thein (the sources of the time), Ravbar (the tradition), or each in turn.
- Whether Erazem died in late spring or in autumn 1484, and so how long the siege lasted. No source read gives a day. A date of 4 July 1484 appeared in a search result that I have not traced to a source I can name, so it is not relied on here.
- The size of either force. Nothing read gives one.
- What kind of gun fired the fatal shot. The hand gun reading above is ours, from one word of a chronicle quoted at second hand.
- How badly the castle was damaged in 1484, and what stood there between 1484 and 1511.
- What happened at the castle in the Second World War beyond its use by the Partisans. The only details come from Slovene Wikipedia, which cites two guidebooks we have not seen.
- Whether the castle was attacked before 1483. Nothing read says so; nothing read rules it out.
- Unrest's chronicle, the Herberstein family book, Thein's memoir, Bavčer and Valvasor were not read directly. Everything said of them here is as Nared reports and quotes them.
- Two pages that looked useful could not be read. The newspaper article that both Wikipedia articles cite for the legend being unfounded is no longer at its address,12 and a regional libraries' page on the castle and the quarrel with the emperor refused automated access.13
- The castle's managers publish only the legend on the page read. Ivan Stopar's guidebook to the castle (2001) and Igor Sapač's survey of the castles of Notranjska (2005), which the heraldry pages cite,5,6 have not been checked.
About this entry
Each attack is told first as a short story and then set out as a record. The story adds nothing the record does not have: the narrator chooses the order and the emphasis, never the facts. Every statement has a numbered note that leads to its source. Anything that is our own reading is said to be ours. Where two sources disagree, the record gives both. "Not given" means none of the sources read says; it does not mean it is unknown to historians.
Sources
- Andrej Nared, "Erazem (Pred)jamski - slovenski Robin Hood?", Zgodovina za vse 5 (1998), no. 2, pp. 5 to 16, Digital Library of Slovenia. A scholarly article, in Slovene with a German summary and with quotations from the old chronicles in German and Latin. Read in full, in the plain-text copy the library offers from this page (scanned text, so a few words are garbled; quotations here avoid those places). The quotations are in that text copy, not on the catalogue page this link opens.
- Predjamski, Erazem (okoli 1420–1484), Slovenska biografija. The national biography site of the Slovenian Academy of Sciences and Arts and its research centre; the entry is by Franc Kralj, from the Primorski slovenski biografski leksikon. In Slovene. Read in full.
- Predjama Castle, Wikipedia. Read in full, 2026-11-22. The page carries a notice that it needs more citations.
- Predjama Castle, Culture.si. The Slovenian Ministry of Culture's guide to culture in Slovenia. Read in full.
- Coats of arms of the Cobenzl family in Predjama Castle, Noble heraldry in Slovenia. A project of ZRC SAZU, the research centre of the Slovenian Academy of Sciences and Arts. Read in full. Covers only the owners after 1567.
- Coats of arms of the Princes Windisch-Graetz in Predjama Castle, Noble heraldry in Slovenia. ZRC SAZU. Read in full. Covers only the owners after 1846.
- Grad Predjama, Wikipedia in Slovene. History and wartime sections read in full, 2026-11-22. In Slovene.
- A rocky refuge, RTV SLO. Slovenia's public broadcaster; by Jaka Bartolj, 12 October 2017. Read through the fetch tool, which returned the sentences quoted here but not the whole page as running text.
- Erasmus of Lueg, Wikipedia. Read in full, 2026-11-22.
- Predjama Castle, Postojna Cave Park. The official site of Postojnska jama d.d., the company that manages the castle. Read in full. It tells the siege only as legend.
- The knight Erasmus lived in the castle of Luegg, RTV SLO. Public broadcaster; by Michael Manske, 19 December 2013. Read through the fetch tool. Used only as an example of the cherries story.
- Erazem Predjamski ni umrl na stranišču, Dnevnik, 27 February 2013. Not verified: the address now returns "page not found", so this article was not read and nothing here rests on it.
- Grad Jama in spor s cesarjem, Kamra. The Slovene regional libraries' portal. Not verified: the site refused automated access, so this page was not read and nothing here rests on it.