Walmer Castle against Charles' brother, King James II, the townsfolk of Deal seized Walmer Castle on behalf of William III, the Prince of Orange. By the end of the century, however, the castle was increasingly regarded as out of date from a military perspective. In the 18th century, Walmer Castle became the official residence of the Lord Warden of the Cinque Ports. The Lord Warden was originally a medieval title linked to five key ports along the coast of England; the position's prominence had faded, but it still retained important judicial and military functions. When Lionel Sackville, the Duke of Dorset, was
Walerand Teutonicus Somerset and Dorset in 1215, and in 1224 Ralph Germun was a keeper of the Dorset coast. In the year 1230 Geoffery de Lucy was Warden of Portsmouth, Hythe and Romney, Constable of Dover Castle. Henry de Sandwich was warden of Dover and Sandwich, whilst Shoreham, Winchelsea, Rye, Hastings, Seaford and Pevensea were under the administration of the Constable of Hastings. In 1235 Hamo de Crevecur, who was appointed Lord Warden in 1263 shared joint control with Walerand Teutonicus, of the coast between Hastings and Poole, in Dorset. Walerand Teutonicus Walerand Teutonicus was a Lord Warden of the Cinque Ports