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 14 towns belong to the Cinque Ports confederation. The title is one of the higher honours bestowed by the Sovereign; it has often been held by members of the Royal Family or Prime Ministers, especially those who have been influential in defending Britain at times of war. The Lord Warden was solely responsible for the return of all writs to the Crown, along with the collection of taxes and the arrest of criminals. His court was held in St James's church, near Dover Castle, and there he exercised jurisdiction broadly equivalent to that of Chancery. He also had a "lieutenant's