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
2nd Cinque Ports Artillery Volunteers part-time soldiers eager to supplement the Regular British Army in time of need. A large number of coastal artillery units were formed in the seaports along the Kent and Sussex coast (the ancient Cinque Ports), and in September 1862 these artillery volunteer corps (AVCs) were brought together to form the 1st Cinque Ports Artillery Volunteers at Dover: In May 1890 the Sussex batteries were separated from the 1st Cinque Ports Artillery to form the 2nd Cinque Ports Artillery Volunteers with the following organisation: In 1901 the unit was converted to 'position artillery' as part of the Royal Garrison Artillery (RGA)