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 parliamentary representatives were appointed by the Lord Warden at first; this influence continued until the 19th century. At the installation of a new Lord Warden, the Speaker of the Confederation of the Cinque Ports instructs the Lord Warden: "to undertake the duties of the Ancient and Honourable Office and to uphold the Franchises, Liberties, Customs and Usages of the port." The office of Speaker has traditionally rotated between the affiliate townships every year dating from at least 1550. Inaugurations are begun on 21 May, and membership is ordained through a longstanding maritime tradition of a principle of the prevailing winds