William the Lion
In 1209 the castle accommodated both King John and William the Lion, on an occasion when William did homage for his English lands to the English king. Between 1208 and 1211, King John maintained the castle defences in good order and provided a strong garrison. The strong defences were needed in 1215, when Alexander II of Scotland, son of William the Lion, besieged the castle for forty days without success. In 1217 the castle was once again restored to the bishopric of Durham.