The castle was used as a prison from earliest times up until the end of World War II. During World War II, a small garrison of German troops occupied the castle, which they called "Hafenschloss" ("Harbour Castle"). The occupiers undertook concrete modifications to the castle to suit modern warfare. After the War, in 1947, the Crown presented the castle to the people of Guernsey, as a token of their loyalty during two world wars.