Originally built as a wooden fort, it was gradually replaced by stone, with the outer walls being shaped according to the uneven rocky terrain. Its first owner was Hungarian nobleman Matthew III Csák, who received it in 1302 from the King Ladislaus V of Hungary. Later, in the 15th century, it was owned by King Matthias Corvinus of Hungary, who gave it to his illegitimate son John Corvinus in 1489.
This fortification was initially built as a wooden structure and later transformed into a stone fortress, its walls carefully adapted to the uneven terrain. It was first owned by Hungarian nobleman Matthew III Csák, who received it from King Ladislaus V of Hungary in 1302. Later, King Matthias Corvinus of Hungary gifted it to his illegitimate son John Corvinus in 1489.