Predjama Castle (Predjamski grad or Grad Predjama) is a Renaissance castle built within a cave mouth in southwestern Slovenia. It is located approximately 11 kilometres from Postojna.
The castle was first mentioned in the year 1274 with the German name Luegg, when the Patriarch of Aquileia built the castle in Gothic style. The castle was built under a natural rocky arch high in the stone wall to make access to it difficult. It was later acquired and expanded by the Luegg noble family, also known as the Knights of Adelsberg (the German name of Postojna).
The castle became known as the seat of Knight Erazem Lueger (or Luegger), owner of the castle in 15th century and a renowned robber baron. He was the son of the Imperial Governor of Trieste, Nikolaj Lueger. According to legend, Erazem came into conflict with the Habsburg establishment, when he killed the commander of the Imperial army Marshall Pappencheim, who had offended the honour of Erazem's deceased friend, Andrej Baumkircher of Vipava. Fleeing from the revenge of the Holy Roman Emperor Frederick III, Erazem settled in the family fortress of Predjama. He allied himself with the Hungarian king Matthias Corvinus and began to attack Habsburg estates and towns in Carniola.
The Imperial forces sent the Governor of Trieste, Andrej Ravbar, to siege the castle. After a long siege, Erazem was betrayed by one of his men and killed.
A headstrong and rebellious knight, Erazem rebelled against the Austrian emperor Fredrick III and eventually killed his kinsman. Thus enraged, the Austrian leader commissioned the governor of Trieste to capture and kill Erazem. This is where the impregnability of Predjama Castle was truly put to the test.
For a year and a day, Erazem was besieged in his fortress. But, much to the dismay of his adversaries, he continued to survive and taunt the attacking soldiers by pelting them with cherries. They couldn't figure out how he was getting his supplies. As far as they knew, there was only one way in and out of the valley, and the castle. But the cunning knight knew better. Unbeknownst to the soldiers, Erazem knew of a secret tunnel leading from the castle, which allowed him to travel to the nearby village of Vipava and collect supplies, including hoards of fresh cherries when the season was ripe.
But it seemed that the soldiers were to have the last laugh. With the strategic placement of a small signal flag, a servant of Erazem was bribed to reveal when his master was in attendance at that place where the elusive knight and even the noblest of men needed to go after consuming lots of cherries and wine: the outhouse. Unfortunately for Erazem, the toilet, situated on the top floor and at the very edge of the castle, was the one place that wasn't so impregnable. When the moment came, the flag was placed there by the treacherous servant. A single cannon ball was launched, and the errant knight was literally caught with his pants down.
After the siege and destruction of the original castle, its ruins were acquired by the Oberburg noble family. In 1511, the second castle, built by the Purgstall family in the first decade of the 16th century, was destroyed in an earthquake. In the year 1567, Archduke Charles of Austria leased the castle to baron Philipp von Cobenzl, who paid it off after 20 years. In 1570, the current castle was built in the Renaissance style, pressed next to a vertical cliff under the original Medieval fortification. The castle has remained in this form, virtually unchanged, to the present day.
In the 18th century, it became one of the favourite summer residences of the Cobenzl noble family. Both the Austrian statesman Philipp von Cobenzl and the diplomat Count Ludwig von Cobenzl spent time in the castle.
In 1810, the castle was inherited by Count Michael Coronini von Cronberg, and in 1846 it was sold to the Windischgrätz family, who remained its owners until the end of World War II, when it was nationalized by the Yugoslav Communist authorities and turned into a museum.
A secret natural shaft leads out of the castle, which Erazem ordered to be enlarged, and leads into Postojna Cave. This shaft allowed Erazem to secretly supply the castle with food in the time of the siege; he also used it to continue with his robberies.
Predjama Castle was used as the castle featured in the 1986 movie Armour of God (film) by Golden Harvest starring Jackie Chan, Alan Tam, Rosamund Kwan and Lola Forner. It was also investigated for paranormal activity in a 2008 episode of Ghost Hunters Internationalon the Sci Fi Channel.