 According to the historian Peter Štih's deduction, this happened between 1112 and 1125.Until 1144 the castle became property of the House of Sponheim.In 1256, Ljubljana Castle was mentioned in a document as the most important castle of the rulers of Carniola ().