While the area around modern-day Edinburgh has been inhabited for thousands of years,[1] the history of Edinburgh as a definite settlement can be traced to the early Middle Ages when a hillfort was established in the area, most likely on the Castle Rock. From the seventh to the tenth centuries it was part of the Anglian Kingdom of Northumbria, becoming thereafter a royal residence of the Scottish kings. The town that developed next to the stronghold was established by royal charter in the early 12th century, and by the middle of the 14th century was being described as the capital of Scotland. The area known as the New Town was added from the second half of the 18th century onwards. Edinburgh was Scotland's largest city until Glasgow outgrew it in the first two decades of the 19th century. Following Scottish devolution in the very late 20th century, Scotland's Parliament was re-established in Edinburgh.