It was the seat of power for anyone who ruled the region, control of which passed from Scotland to England many times over the centuries.
It was the seat of power for the ruler.