Wallingford Castle was a medieval castle in Wallingford, Oxfordshire. It was built in the 11th century as a motte-and-bailey design. Empress Matilda used it during the Anarchy and was where the Treaty of Wallingford was agreed. It later became a royal residence but was abandoned in the reign of Henry VIII and fell into ruin.