The castle was founded when Ranulf Flambard, Bishop of Durham from 1099 to 1128, gave orders for its construction in 1121, in order to protect the property of the bishopric in north Northumberland, from incursions by the Scots.
In 1174 Hugh de Puiset supported the rebels in a revolt against Henry II, during which the Scottish king, William the Lion invaded Northumberland.