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
Robert de Auberville the name given to the office of Lord Warden of the Cinque Ports, in 1228. He was responsible for the general security of the ports between Sandwich and Portsmouth. He and Bertram de Criol, then Constable of Dover Castle, were favoured by a writ "de intendendo" issued to the bailiffs and barons of the Cinque Ports in 1229: in an equivalent writ of 1230, Henry de Sandwich appears in de Auberville's place. Robert witnessed a charter of confirmation to Hubert de Burgh in 1227. At about that time both he and Bertram de Criol also witnessed a grant to Hubert