sentences:  The castle was protected using the castle-guard system, under which local lands were granted to minor lords in exchange for the contribution of knights and soldiers for the defence of the castle.The castle was attacked and sacked in 1265 during the Second Barons' War; it was subsequently largely abandoned.By the 14th century, Eye Castle lay largely in ruins, although parts of the castle continued to be maintained as a prison.