Built on Roman foundations , the castle was erected in the late 13th century to keep the Scots at bay its strategic position affords good views of the surrounding lowland .
The castle built in the 13th century was in a terrible strategic position .