During the English Civil War the castle was held by Parlianmentarian forces and in 1648 it was the prison of King Charles I for a short time before he was moved to Westminster.
Because of its strategic location the castle has been put to use since the medieval period. In the latter part of the nineteenth century the castle was greatly extended and was used during World War II to guard against invasion from Europe.