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
Lord Warden of the Cinque Ports to the barons in the shires. The warden and barons 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, and is solely honorary in nature. The first authoritative list of Cinque Ports Confederation Members was produced in 1293 when Stephen of Pencester was Warden. The Lord Warden of the Cinque Ports is appointed for life, but in the earliest of records this was not the case. The office of Lord Warden of the