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
Cinque Ports often experienced clashes of jurisdiction. In the 21st century the title "Baron of the Cinque Ports" is now reserved for Freemen elected by the Mayor, Jurats and Common Council of the Ports to attend a Coronation, at which they hold the canopy above a new monarch, and is solely honorary in nature. As time went by and some ports declined or silted up, others were added. Rye and Winchelsea were attached to Hastings as "Ancient Towns" in the 12th century, and later became members in their own right. The following "corporate limbs" were added in the 15th century: Lydd, Faversham,