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 in the coastline along the south east coast, from the Thames estuary to Hastings and the Isle of Wight inevitably reduced the significance of a number of the Cinque port towns as port authorities. However, ship building and repair, fishing, piloting, off shore rescue and sometimes even "wrecking" continued to play a large part in the activities of the local community. By the reign of Queen Elizabeth I, the Cinque Ports had effectively ceased to be of any real significance, and were absorbed into the general administration of the Realm. Queen Elizabeth I sanctioned the first national lottery that was