How long did the castle last