Its construction began in the early first half of the thirteenth century
From the main royal castle that arose in the middle of the thirteenth century, and the seat of Moravian herbs in the middle of the fourteenth century, it gradually transformed into a huge baroque castle considered the harshest prison in the Austro-Hungarian Empire, then to the barracks. This prison has always been part of Špilberk Castle and is often referred to by the main character, Fabrizio, in Stendahl's novel, "The Charterhouse of Parma".