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 parliament were sent to the warden following which representative barons of the Cinque Ports were selected to attend parliament. Thus the warden's duty in this respect was similar to that of the sheriff who received the writs for distribution to the barons in the shires. The existence of common (i.e. communal) seals of the barons of the individual ports (see illustration) suggests they formed a corporation as the seal was designed to be affixed to charters and legal documents which would bind them as a single body. This no doubt related to their privileges as monopolies. The warden and barons