[141] The present building was named after Queen Anne and was built during the attempted Jacobite invasion by the Old Pretender in 1708. Nevertheless, the castle continues to have a strong connection with the Army, and is one of the few ancient castles in Britain that still has a military garrison, albeit for largely ceremonial and administrative purposes. [17], Landowners affected by the new fortification works were compensated, one merchant William Dawson was granted exemption from any future customs duties for the loss of his building in North Leith. [49] Humfrey Barwick blamed Arthur Grey's injury on William Pelham not securing the position properly while the fortlet was under construction. Visit was pretty miserable since it was pouring rain. To the south of the hall is a section of curtain wall from the 14th century with a parapet of later date. [154][156] The memorial is maintained by a charitable trust. Potter, p.146: Pitcairn, vol.2, pp.45–46: Caldwell, David H (1981). 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, Scottish Borders in the Scottish Borders. Edward I of England was appointed to adjudicate the competing claims for the Scottish crown, but used the opportunity to attempt to establish himself as the feudal overlord of Scotland. [111] The buildings and structures of the castle are further protected by 24 separate listings, including 13 at category A, the highest level of protection for a historic building in Scotland. It was formerly known as the Scottish United Services Museum, and, prior to this, the Scottish Naval and Military Museum, when it was located in the Queen Anne Building. [20] Later, St Monenna, said to be one of nine companions, reputedly invested a church at Edinburgh, as well as at Dumbarton and other places. Defences were rebuilt and enhanced in response to the Jacobite Risings of 1689–1746. [151] The Queen Anne Building provided accommodation for Staff Officers, but after the departure of the Army it was remodelled in the 1920s as the Naval and Military Museum, to complement the newly opened Scottish National War Memorial. In 1565, the Queen made an unpopular marriage with Henry Stuart, Lord Darnley, and the following year, in a small room of the Palace at Edinburgh Castle, she gave birth to their son James, who would later be King of both Scotland and England. In Edinburgh it was to return James VII of Scotland and II of England. The foundations were formed by the construction of a series of large stone vaults built onto the uneven Castle Rock in the 1430s.