Walmer Castle was built by Henry VIII in 1539-1540 as an artillery fortress to counter the threat of invasion from Catholic France and Spain.