The castle is first mentioned in 1274 as Castrum Carsach, in peace agreement between Aquileia patriarch Raimondo della Torre, and count Albert I of Gorizia who in the conflict that started in 1268 during patriarch Gregorio di Montelongo conquered and destroyed fortified settlement. It was abandoned until the 13th or early 14th century, when it was rebuilt by Heinrich III. Until 1374, when counts of Gorizia became extinct, it was in duality of governance, between the real masters Counts of Gorizia, and Aquileia church in which name the Counts ruled over the castle. When the counts extinct it wasn't returned to Aquleia patriarchs (the state Patria del Friuli), but was inherited by Habsburg family.