"So, Historic Scotland (Historic Environment Scotland), a Scottish Government body, now have control of Edinburgh Castle. It's one of the fantastic assets of our United Kingdom, a British Army base, but it cannot be used for UK Government functions unless it's specifically in the army base parts of Edinburgh Castle."The Scottish Government can use it as a backdrop for any of their announcements - as we saw during the independence referendum where it was in the Great Hall of Edinburgh Castle that Alex Salmond formally announced the beginning of the independence campaign."Mr Bowie added: "So, we've got to learn from our mistakes and I think we are and these UK government hubs across the UK are a great step forward in demonstrating our commitment to our entire United Kingdom."Andrew Bowie's comments have been challenged by opposition figures, with some pointing out that Edinburgh Castle has never been under the ownership of the UK Government.​Ownership of Edinburgh Castle was handed over from the Crown Estates to the Scottish Government as part of the devolution settlement in 1999. The British Army remains responsible for some areas of the historic landmark, including the National War Museum.In a tweet, Andy Wightman of the Scottish Greens sought to correct Mr Bowie.The Lothian MSP wrote: “Edinburgh Castle has never been part of the UK Govt estate. Since medieval period it’s been owned by the Crown in Scotland.