Castles

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

WhenAttackerDefenderNumbersHow it was foughtResult
Late 1483 or early 1484, to 14841Forces 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 Trieste1Erazem of Jama (Erasmus Lueger) and his garrisonNot given for either side. Thein wrote that he had three great guns1Blockade to starve the castle, defeated by a hidden passage; gunfire1,2Taken: Erazem shot dead, the castle surrendered by his brother and widow1
1511None: an earthquake3,4--Not an attackCastle ruined4
1567 and afterNone: pledge, purchase, inheritance, sale5,6--Not attacksChanges of owner
Second World WarNone recorded. Partisans used the castle7,8-Not givenNo fighting at the castle is recorded in the sources readNationalised 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

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 storyWhere it comes fromWhat a source of the time says
Erazem was a robber knight, even a Robin HoodValvasor alone calls him a robber;1 the Robin Hood figure is later still1Nothing. No document of his crimes survives1
The castle was supplied through a secret passageValvasor and Bavčer, who make it far longer than it is1The 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 besiegersValvasor1 and popular retellings11Nothing. 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 lightBavč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 privyValvasor's joke about an errand that even the Turkish emperor cannot send a deputy on1Unrest: shot through a window.1 Nared: the privy "se ne da preveriti"1 (cannot be checked)
He was killed by a cannon ballThe usual telling; one Wikipedia article says "by a shot from a cannon or catapult"9Unrest'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)

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

TacticUsed against PredjamaDid it work?
Blockade to starve the garrison1483 to 1484No: the castle was fed through the passage in the rock1,2
Assault on the wallsNone recorded in the sources readNot tried, as far as these sources say. The biography calls the castle "praktično nezavzetni grad Jama"2 (the practically untakeable castle of Jama)
Gunfire1484It killed the lord, probably by chance,1 and that ended the siege. Nothing read says the guns breached the castle
Bribing a servant1484, in the legend onlyNot in any source of the time1
Killing the commander1484Yes: 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

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

  1. 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.
  2. 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.
  3. Predjama Castle, Wikipedia. Read in full, 2026-11-22. The page carries a notice that it needs more citations.
  4. Predjama Castle, Culture.si. The Slovenian Ministry of Culture's guide to culture in Slovenia. Read in full.
  5. 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.
  6. 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.
  7. Grad Predjama, Wikipedia in Slovene. History and wartime sections read in full, 2026-11-22. In Slovene.
  8. 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.
  9. Erasmus of Lueg, Wikipedia. Read in full, 2026-11-22.
  10. 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.
  11. 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.
  12. 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.
  13. 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.