Kastelburg castle was built between 1260 and 1270 by the Lords of Schwarzenberg. Like the Schwarzenburg on the opposite side of the valley its purpose was to defend the town Waldkirch and to control the trade route through the Elz valley.
The first inhabitant of the castle was Johann I of Schwarzenberg. The Schwarzenbergs died out already in 1345 and the castle was sold to Martin Malterer from Freiburg who fell in 1386 in the Battle of Sempach. In 1429 the castle was passed on to Berthold of Staufen.
In the Thirty Years' War the castle was destroyed by troops of the Kaiser on 14 March 1634 so that it did not fall into the hands of the advancing Swedish troops.
In recent years attempts have been made to conserve the edificial structure of the ruin that is standing romantically above the historic center of Waldkirch.
References:Duino Castle was built by the Wallsee family in 1389 on the cliffs overlooking the Gulf of Trieste. It replaced an older castle from the 11th century. Over time, the Wallsee family disappeared and the castle, after having been used as a prison, became the residence of the Luogar and Hofer.
At the end of the 19th century it became the property of Prince Alexander von Thurn und Taxis from the Czech branch of the House of Thurn and Taxis. It remains with the family to this day with his great-grandson Prince Carlo Alessandro della Torre e Tasso, Duke of Castel Duino the current owner. The castle has been opened to the public as a museum and park.