Although the Portuguese basked in the nautical achievement of successfully navigating the cape, they showed little interest in colonization. The area's fierce weather and rocky shoreline posed a threat to their ships, and many of their attempts to trade with the local Khoikhoi ended in conflict. The Portuguese found the Mozambican coast more attractive, with appealing bays to use as waystations, prawns, and links to gold ore in the interior.
The Portuguese had little competition in the region until the late 16th century, when the English and Dutch began to challenge them along their trade routes. Stops at the continent's southern tip increased, and the cape became a regular stopover for scurvy-ridden crews.
In 1647, a Dutch vessel, the Haarlem, was wrecked in the present-day Table Bay. After being rescued, the marooned crew recommended that a permanent station be established in the bay. The Dutch East India Company (in the Dutch of the day: Vereenigde Oostindische Compagnie, or VOC), one of the major European trading houses sailing the spice route to the East, had no intention of colonizing the area, instead wanting only to establish a secure base camp where passing ships could shelter, and where hungry sailors could stock up on fresh supplies of meat, fruit, and vegetables. To this end, a small VOC expedition under the command of Jan van Riebeeck reached Table Bay on April 6, 1652.
While the new settlement traded out of necessity with the neighbouring Khoikhoi, one could hardly describe the relationship as friendly, and the authorities made deliberate attempts to restrict contact. Partly as a consequence, VOC employees found themselves faced with a labour shortage. To remedy this, they released a small number of Dutch from their contracts and permitted them to establish farms, with which they would supply the great VOC settlement from their harvests. This arrangement proved highly successful, producing abundant supplies of fruit, vegetables, wheat, and wine; they later raised livestock. The small initial group of free burghers, as these farmers were known, steadily increased and began to expand their farms further north and east into the territory of the Khoikhoi.