sentence1: 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.
sentence2: In the late 13th century the castle was built to defend against the Scots.