Wallingford Castle was a major medieval castle. Established in the 11th century as a motte-and-bailey design within an Anglo-Saxon "burgh", it grew to become what historian Nicholas Brooks has described as "one of the most powerful royal castles of the 12th and 13th centuries". During The Anarchy the castle held the Empress Matilda and her son the future King Henry II. It was the site of the signing of the Treaty of Wallingford, which began the end of the conflict and set the path to a negotiated peace. Over the next two centuries Wallingford became a luxurious castle, used by royalty and their immediate family. After being abandoned as a royal residence by Henry VIII, the castle fell into decline.