 The maintenance costs were too high so the castle began to crumble.In the 19th century, the castle was redesigned partially as a prison and partially as a military stronghold, making it less popular among the citizens.Several famous people were jailed in the castle, including the Italian revolutionary Silvio Pellico, the Hungarian Prime Minister Lajos Batthyany and the Slovene author Ivan Cankar.