The Cape Colony was founded by the Dutch East India Company in 1652, when Jan van Riebeeck planted a refreshment station at Cape Town to feed the company's ships rounding Africa to Asia. From that garden grew a settler society: Dutch, French, and German colonists, the ancestors of the Afrikaners, along with enslaved people brought from Asia and Africa, and the Khoikhoi and San peoples whose lands were steadily swallowed.
Britain seized the Cape in 1806, during the Napoleonic wars, and held it for over a century, expanding the colony's borders through wars and treaties against the Xhosa kingdoms on its eastern frontier. British rule brought English law and settlers, the abolition of slavery in the 1830s, which helped provoke the Boer Great Trek into the interior, the founding epic of Afrikaner nationhood: between 1835 and the early 1840s some 12,000 to 14,000 Boers, whole parties of kinfolk and neighbors, crossed the Orange River with their wagons and fought their way past the kingdoms of the interior with horses, guns, and laagered camps, and eventually diamonds and gold, which made the Cape the richest corner of Africa.
The colony matters because so much of South Africa's later history was drafted there: a society built on land dispossession and racial hierarchy, a booming mining economy run on cheap African labor, and a qualified franchise that let some Black men vote, a flicker of inclusion snuffed out after union.
In 1910 the Cape Colony joined Natal, the Transvaal, and the Orange Free State to form the Union of South Africa, becoming the Cape Province. Its racial laws and labor systems helped shape the apartheid that followed, and its story, from van Riebeeck's garden to Mandela's walk to freedom in Cape Town, remains the key to understanding South Africa.