was imprisoned at the castle