The heavily fortified castle Vredenburg was built to house a large garrison whose main task was to maintain control over the city.