The middle-ages of Scotland (part of Anglo-Saxon Britain; see England-MiddleAges) began with the departure of the Romans (who had remained south of Hadrian's Wall; see PreRoman Scotland) in ~490 and ran until 1305 [ https://en.wikipedia.org/wiki/History_of_Anglo-Saxon_England ]