Despite performing glorious deeds of valour and bravery, the poem relates that the Gododdin were massacred.The territory around Edinburgh then became part of the Kingdom of Northumbria, which was itself absorbed by England in the 10th century.Lothian became part of Scotland, during the reign of Indulf (r.954–962).The archaeological evidence for the period in question is based entirely on the analysis of middens (domestic refuse heaps), with no evidence of structures.There has been a royal castle on the rock since at least the reign of David I in the 12th century, and the site continued to be a royal residence until 1633.From the 15th century the castle's residential role declined, and by the 17th century it was principally used as military barracks with a large garrison.Expression error: Unrecognised punctuation character "[".px; top: -Expression error: Unrecognised punctuation character "[".px; width: Template: Location map Scotland Edinburgh Centralpx; font-size: Template: Location map Scotland Edinburgh Centralpx; line-height: 0;" title="" Edinburgh Castle is a historic fortress which dominates the skyline of the city of Edinburgh, Scotland, from its position on the Castle Rock.
The nature of the settlement in this period is inconclusive, but Driscoll and Yeoman suggest it may have been a broch, similar to the one at Edin's Hall near Duns in the Scottish Borders.
Ptolemy's map of the 2nd century AD This could, however, refer to another of the tribe's hill forts in the area. According to the earlier chronicler, Geoffrey of Monmouth (c. 1155), Ebraucus had fifty children by his twenty wives, and was the founder of "Kaerebrauc" (York), "Alclud" (Dumbarton) and the "Maidens' Castle". William Camden's survey of Britain, Britannia (1607), records that "the Britans called [it] Castle Myned Agned [winged rock], the Scots, the Maidens Castle and the Virgins Castle, of certaine young maidens of the Picts roiall bloud who were kept there in old time".