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 held in 1569 in an effort to raise funds for the crumbling Cinque Ports. With the advance in shipbuilding techniques came a growth in towns such as Bristol and Liverpool and the wider development of ports such as London, Gravesend, Southampton, Chichester, Plymouth and the royal dockyards of Chatham, Portsmouth, Greenwich, Woolwich and Deptford. A further reason for the decline of many older ports may be ascribed to the development of the railway network across Britain, and the increased quantity of overseas trade it could distribute from the new major ports developing from the 18th century. Local Government reforms and