<Tr> <Th> Built </Th> <Td> 1666--1679 (1666--1679) </Td> </Tr> <Tr> <Th> Battles / wars </Th> <Td> Second Boer War </Td> </Tr> <P> The Castle of Good Hope (Dutch: Kasteel de Goede Hoop; Afrikaans: Kasteel van Goeie Hoop) is a bastion fort built in the 17th century in Cape Town, South Africa . Originally located on the coastline of Table Bay, following land reclamation the fort is now located inland . In 1936 the Castle was declared a historical monument (now a provincial heritage site) and following restorations in the 1980s it is considered the best preserved example of a Dutch East India Company fort . </P> <P> Built by the Dutch East India Company between 1666 and 1679, the Castle is the oldest existing colonial building in South Africa . It replaced an older fort called the Fort de Goede Hoop which was constructed from clay and timber and built by Jan van Riebeeck upon his arrival at the Cape of Good Hope in 1652 . Two redoubts, Redoubt Kyckuit (Lookout) and Redoubt Duijnhoop (Duneheap) were built at the mouth of the Salt River in 1654 . The purpose of the Dutch settlement in the Cape was to act as a replenishment station for ships passing the treacherous coast around the Cape on long voyages between the Netherlands and the Dutch East Indies (now Indonesia). </P>

When was the castle of good hope built