# History of South Africa

The first modern humans are believed to have inhabited South Africa more than 100,000 years ago. South Africa's first known inhabitants have been collectively referred to as the Khoisan, the Khoekhoe and the San. Starting in about 400 AD, these groups were then joined by the Bantu ethnic groups who migrated from Western and Central Africa during what is known as the Bantu expansion. These Bantu groups were mainly limited to the area north of the Soutpansberg and the northeastern part of South Africa until the later Middle Iron Age (AD 1000-1300), after which they started migrating south into the interior of the country.
European exploration of the African coast began in the 13th century when Portugal sought an alternative route to the Silk Road to China. In the 14th and 15th century, Portuguese explorers traveled down the west African Coast, detailing and mapping the coastline and in 1488 they rounded the Cape of Good Hope. The Dutch East India Company established a trading post in Cape Town under the command of Jan van Riebeeck in April 1652, European workers who settled at the Cape became known as the Free Burghers and gradually established farms in the Dutch Cape Colony. Following the Invasion of the Cape Colony by the British in 1795 and 1806, mass migrations collectively known as the Great Trek occurred during which the Voortrekkers established several Boer Republics in the interior of South Africa. The discoveries of diamonds and gold in the nineteenth century had a profound effect on the fortunes of the region, propelling it onto the world stage and introducing a shift away from an exclusively agrarian-based economy towards industrialisation and the development of urban infrastructure. The discoveries also led to new conflicts culminating in open warfare between the Boer settlers and the British Empire, fought for control over the nascent mining industry.
Following the defeat of the Boers in the Second Anglo–Boer War or South African War (1899–1902), the Union of South Africa was created as a self-governing dominion of the British Empire on 31 May 1910 in terms of the South Africa Act 1909, which amalgamated the four previously separate British colonies: Cape Colony, Colony of Natal, Transvaal Colony, and Orange River Colony. The country became a fully sovereign nation state within the British Empire in 1934 following enactment of the Status of the Union Act. The monarchy came to an end on 31 May 1961, replaced by a republic as the consequence of a 1960 referendum.
From 1948–1994, South African politics was dominated by Afrikaner nationalism. A comprehensive system of racial segregation and white minority rule known as apartheid was introduced from 1948.
On 2 February 1990, F.W. de Klerk, then president of South Africa and leader of the National Party, unbanned the African National Congress (ANC) and freed Nelson Mandela from life imprisonment on Robben Island. The CODESA talks negotiated the creation of a new non-racial democratic South Africa, for which de Klerk and Mandela were later awarded the Nobel Peace Prize.
These negotiations led to the creation of a democratic constitution for all South Africa. On 27 April 1994, after decades of ANC-led resistance to white minority rule and international opposition to apartheid, the ANC achieved a majority in the country's first democratic election. Since then, despite a continually decreasing electoral majority, the ANC has ruled South Africa. In 2024, the ANC lost its parliamentary majority for the first time since the transition to democracy.
High rates of crime, corruption, unemployment, low economic growth, an ongoing energy crisis, and poorly maintained infrastructure are some of the problems challenging contemporary South Africa.

## Early history (before 1652)
### Prehistory

Scientists researching the periods before written historical records were made have established that the territory of what is now referred to generically as South Africa was one of the important centers of human evolution. It was inhabited by Australopithecines since at least 2.5 million years ago. Modern human settlement occurred around 125,000 years ago in the Middle Stone Age, as shown by archaeological discoveries at Klasies River Caves. The first human habitation is associated with a DNA group originating in a northwestern area of southern Africa and still prevalent in the indigenous Khoisan (Khoi and San). Southern Africa was later populated by Bantu-speaking people who migrated from the western region of central Africa during the early centuries AD.
Professor Raymond Dart discovered the skull of a 2.51 million year old Taung Child in 1924, the first example of Australopithecus africanus ever found. Following in Dart's footsteps Robert Broom discovered a new much more robust hominid in 1938 Paranthropus robustus at Kromdraai, and in 1947 uncovered several more examples of Australopithecus africanus at Sterkfontein. At the Blombos cave in 2002, stones were discovered engraved with grid or cross-hatch patterns, dated to some 70,000 years ago. This has been interpreted as the earliest example ever discovered of abstract art or symbolic art created by Homo sapiens.
Many more species of early hominid have come to light in recent decades. The oldest is Little Foot, a collection of footbones of an unknown hominid between 2.2 and 3.3 million years old, discovered at Sterkfontein by Ronald J. Clarke. An important recent find was that of 1.9 million year old Australopithecus sediba, discovered in 2008. In 2015, the discovery near Johannesburg of a previously unknown species of Homo was announced, named Homo naledi. It has been described as one of the most important paleontological discoveries in modern times.

### San and Khoikhoi

The descendants of the Middle Paleolithic populations are thought to be the aboriginal San and Khoikhoi tribes. These are collectively known as the Khoisan, a modern European portmanteau of these two tribes' names. The settlement of southern Africa by the Khoisan corresponds to the earliest separation of the extant Homo sapiens populations altogether, associated in genetic science with what is described in scientific terms as matrilinear haplogroup L0 (mtDNA) and patrilinear haplogroup A (Y-DNA), originating in a northwestern area of southern Africa.
The San and Khoikhoi are essentially distinguished only by their respective occupations. Whereas the San were hunter-gatherers, the Khoikhoi were pastoral herders. The initial origin of the Khoikhoi remains uncertain.
Archaeological discoveries of livestock bones on the Cape Peninsula indicate that the Khoikhoi began to settle there by about 2000 years ago. In the late 15th and early 16th centuries, Portuguese mariners, who were the first Europeans at the Cape, encountered pastoral Khoikhoi with livestock. Later, English and Dutch seafarers in the late 16th and 17th centuries exchanged metals for cattle and sheep with the Khoikhoi. The conventional view is that availability of livestock was one reason why, in the mid-17th century, the Dutch East India Company established a staging post where the port city of Cape Town is today situated.
The establishment of the staging post by the Dutch East India Company at the Cape in 1652 soon brought the Khoikhoi into conflict with Dutch settlers over land ownership. Competition between Dutch and Khoikhoi pastoralists over grazing land led to livestock theft and conflict. The Khoikhoi were ultimately expelled from the peninsula by force, after a succession of wars. The first Khoikhoi–Dutch War broke out in 1659, the second in 1673, and the third 1674–1677. By the time of their defeat and expulsion from the Cape Peninsula and surrounding districts, the Khoikhoi population was decimated by a smallpox epidemic introduced by Dutch sailors against which the Khoikhoi had no natural resistance or indigenous medicines.

### The Bantu people

The Bantu expansion was one of the major demographic movements in human prehistory, sweeping much of the African continent during the 2nd and 1st millennia BC. Bantu-speaking communities reached southern Africa from the Congo basin as early as the 4th century BC. Some groups, ancestral to today's Nguni peoples (the Zulu, Xhosa, Swazi, and Ndebele), preferred to live near the eastern coast of what is present-day South Africa. Others, now known as the Sotho–Tswana peoples (Tswana, Pedi, and Sotho), settled in the interior on the plateau known as the Highveld, while today's Venda and Tsonga peoples made their homes in the north-eastern areas of present-day South Africa.
The Kingdom of Mapungubwe, which was located near the northern border of present-day South Africa, at the confluence of the Limpopo and Shashe rivers adjacent to present-day Zimbabwe and Botswana, was the first indigenous kingdom in southern Africa between AD 900 and 1300. It developed into the largest kingdom in the sub-continent before it was abandoned because of climatic changes in the 14th century. Smiths created objects of iron, copper and gold both for local decorative use and for foreign trade. The kingdom controlled trade through the east African ports to Arabia, India and China, and throughout southern Africa, making it wealthy through the exchange of gold and ivory for imports such as Chinese porcelain and Persian glass beads.
Specifics of the contact between Bantu-speakers and the indigenous Khoisan ethnic group remain largely unresearched, although linguistic proof of assimilation exists, as several southern Bantu languages (notably Xhosa and Zulu) are theorised in that they incorporate many click consonants from the Khoisan languages, as possibilities of such developing independently are valid as well.

### Colonization
#### Portuguese role

The Portuguese mariner Bartolomeu Dias was the first European to explore the coastline of South Africa in 1488, while attempting to discover a trade route to the Far East via the southernmost cape of South Africa, which he named Cabo das Tormentas, meaning Cape of Storms. In November 1497, a fleet of Portuguese ships under the command of the Portuguese mariner Vasco da Gama rounded the Cape of Good Hope. By 16 December, the fleet had passed the Great Fish River on the east coast of South Africa, where Dias had earlier turned back. Da Gama gave the name Natal to the coast he was passing, which in Portuguese means Christmas. Da Gama's fleet proceeded northwards to Zanzibar and later sailed eastwards, eventually reaching India and opening the Cape Route between Europe and Asia. Many Portuguese words are still found along the coast of South Africa including Saldanha, Algoa, Natal, Agulhas, Benguela and Lucia.

#### Dutch role
## Dutch colonization (1652–1815)

The Dutch East India Company (in the Dutch of the day: Vereenigde Oostindische Compagnie, or VOC) decided to establish a permanent settlement at the Cape in 1652. The 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 be serviced and restock on supplies. To this end, a small VOC expedition under the command of Jan van Riebeeck reached Table Bay on 6 April 1652.
The VOC had settled at the Cape in order to supply their trading ships. The Cape and the VOC had to import Dutch farmers to establish farms to supply the passing ships as well as to supply the growing VOC settlement. The small initial group of free burghers, as these farmers were known, steadily increased in number and began to expand their farms further north and east into the territory of the Khoikhoi. The free burghers were ex-VOC soldiers and gardeners, who were unable to return to Holland when their contracts were completed with the VOC. The VOC also brought some 71,000 slaves to Cape Town from India, Indonesia, East Africa, Mauritius, and Madagascar.
The majority of burghers had Dutch ancestry and belonged to the Dutch Reformed Church, but there were also some Germans, who often happened to be Lutherans. In 1688, the Dutch and the Germans were joined by French Huguenots, Calvinist Protestants fleeing religious persecution in France under its Catholic ruler, King Louis XIV.
Van Riebeeck considered it impolitic to enslave the local Khoi and San aboriginals, so the VOC began to import large numbers of slaves, primarily from the Dutch colonies in Indonesia. Eventually, van Riebeeck and the VOC began to make indentured servants out of the Khoikhoi and the San. The descendants of unions between the Dutch settlers and the Khoi-San and Malay slaves became known officially as the Cape Coloureds and the Cape Malays, respectively. A significant number of the offspring from the white and slave unions were absorbed into the local proto-Afrikaans speaking white population. The racially mixed genealogical origins of many white South Africans have been traced to interracial unions at the Cape between the European occupying population and imported Asian and African slaves, the indigenous Khoi and San, and their mixed-ethnicity descendants. Simon van der Stel, the first Governor of the Dutch settlement, famous for his development of the lucrative South African wine industry, was himself of mixed race-origin.

## British colonisation, Mfecane and Boer Republics (1815–1910)
### British at the Cape

In 1787, shortly before the French Revolution, a faction within the politics of the Dutch Republic known as the Patriot Party attempted to overthrow the regime of stadtholder William V. Though the revolt was crushed, it was resurrected after the French invasion of the Netherlands in 1794/1795 which resulted in the stadtholder fleeing the country. The Patriot revolutionaries then proclaimed the Batavian Republic, which was closely allied to revolutionary France. In response, the stadtholder, who had taken up residence in England, issued the Kew Letters, ordering colonial governors to surrender to the British. The British then seized the Cape in 1795 to prevent it from falling into French hands. The Cape was relinquished back to the Dutch in 1803. In 1805, the British inherited the Cape as a prize during the Napoleonic Wars, again seizing the Cape from the French controlled Kingdom of Holland which had replaced the Batavian Republic.
Like the Dutch before them, the British initially had little interest in the Cape Colony, other than as a strategically located port. As one of their first tasks they outlawed the use of the Dutch language in 1806 with the view of converting the European settlers to the British language and culture. The Cape Articles of Capitulation of 1806 allowed the colony to retain "all their rights and privileges which they have enjoyed hitherto", and this launched South Africa on a divergent course from the rest of the British Empire, allowing the continuance of Roman-Dutch law. British sovereignty of the area was recognised at the Congress of Vienna in 1815, the Dutch accepting a payment of 6 million pounds (equivalent to £31,2 billion in 2023) for the colony. This had the effect of forcing more of the Dutch colonists to move (or trek) away from British administrative reach. Much later, in 1820 the British authorities persuaded about 5,000 middle-class British immigrants (most of them "in trade") to leave Great Britain. Many of the 1820 Settlers eventually settled in Grahamstown and Port Elizabeth.
British policy with regard to South Africa would vacillate with successive governments, but the overarching imperative throughout the 19th century was to protect the strategic trade route to India while incurring as little expense as possible within the colony. This aim was complicated by border conflicts with the Boers, who soon developed a distaste for British authority.

### European exploration of the interior

Colonel Robert Jacob Gordon of the Dutch East India Company was the first European to explore parts of the interior while commanding the Dutch garrison at the renamed Cape of Good Hope, from 1780 to 1795. The four expeditions Gordon undertook between 1777 and 1786 are recorded in a series of several hundred drawings known collectively as the Gordon Atlas, as well as in his journals, which were only discovered in 1964.
Early relations between the European settlers and the Xhosa, the first Bantu peoples they met when they ventured inward, were peaceful. However, there was competition for land, and this tension led to skirmishes in the form of cattle raids from 1779.
The British explorers David Livingstone and William Oswell, setting out from a mission station in the northern Cape Colony, are believed to have been the first white men to cross the Kalahari desert in 1849. The Royal Geographical Society later awarded Livingstone a gold medal for his discovery of Lake Ngami in the desert.

### Zulu militarism and expansionism

The Zulu people are part of the Nguni ethnic group and were originally a minor clan in what is today northern KwaZulu-Natal, founded ca. 1709 by Zulu kaNtombela.
The 1820s saw a time of immense upheaval relating to the military expansion of the Zulu Kingdom, which replaced the original African clan system with kingdoms. Sotho-speakers know this period as the difaqane ("forced migration"); Zulu-speakers call it the mfecane ("crushing").
Various theories have been advanced for the causes of the difaqane, ranging from ecological factors to competition in the ivory trade. Another theory attributes the epicentre of Zulu violence to the slave trade out of Delgoa Bay in Mozambique situated to the north of Zululand. Most historians recognise that the Mfecane wasn't just a series of events caused by the founding of the Zulu kingdom but rather a multitude of factors caused before and after Shaka Zulu came into power.
In 1818, Nguni tribes in Zululand created a militaristic kingdom between the Tugela River and Pongola River, under the driving force of Shaka kaSenzangakhona, son of the chief of the Zulu clan. Shaka built large armies, breaking from clan tradition by placing the armies under the control of his own officers rather than of hereditary chiefs. He then set out on a massive programme of expansion, killing or enslaving those who resisted in the territories he conquered. His impis (warrior regiments) were rigorously disciplined: failure in battle meant death.
The Zulu resulted in the mass movement of many tribes who in turn tried to dominate those in new territories, leading to widespread warfare and waves of displacement spread throughout southern Africa and beyond. It accelerated the formation of several new nation-states, notably those of the Sotho (present-day Lesotho) and the Swazi (now Eswatini (formerly Swaziland)). It caused the consolidation of groups such as the Matebele, the Mfengu and the Makololo.
In 1828 Shaka was killed by his half-brothers Dingaan and Umhlangana. The weaker and less-skilled Dingaan became king, relaxing military discipline while continuing the despotism. Dingaan also attempted to establish relations with the British traders on the Natal coast, but events had started to unfold that would see the demise of Zulu independence. Estimates for the death toll resulting from the Mfecane range from 1 million to 2 million.

### Boer people and republics

After 1806, a number of Dutch-speaking inhabitants of the Cape Colony trekked inland, first in small groups. Eventually, in the 1830s, large numbers of Boers migrated in what came to be known as the Great Trek. Among the initial reasons for their leaving the Cape colony were the English language rule. Religion was a very important aspect of the settlers culture and the bible and church services were in Dutch. Similarly, schools, justice and trade up to the arrival of the British, were all managed in the Dutch language. The language law caused friction, distrust and dissatisfaction.
Another reason for Dutch-speaking white farmers trekking away from the Cape was the abolition of slavery by the British government on Emancipation Day, 1 December 1838. The farmers complained they could not replace the labour of their slaves without losing an excessive amount of money. The farmers had invested large amounts of capital in slaves. Owners who had purchased enslaved people on credit or put them up as surety against loans faced financial ruin. Britain had allocated the sum of 1,200,000 British Pounds (equivalent to £5,53 billion in 2023) as compensation to the Dutch settlers, on condition the Dutch farmers had to lodge their claims in Britain as well as the fact that the value of the enslaved people was many times the allocated amount. This caused further dissatisfaction among the Dutch settlers. The settlers, incorrectly, believed that the Cape Colony administration had taken the money due to them as payment for freeing their slaves. Those settlers who were allocated money could only claim it in Britain in person or through an agent. The commission charged by agents was the same as the payment for one slave, thus those settlers only claiming for one slave would receive nothing.

#### South African Republic

The South African Republic (Dutch: Zuid-Afrikaansche Republiek or ZAR, not to be confused with the much later Republic of South Africa), is often referred to as The Transvaal and sometimes as the Republic of Transvaal. It was an independent and internationally recognised nation-state in southern Africa from 1852 to 1902. Independent sovereignty of the republic was formally recognised by Great Britain with the signing of the Sand River Convention on 17 January 1852. The republic, under the premiership of Paul Kruger, defeated British forces in the First Boer War and remained independent until the end of the Second Boer War on 31 May 1902, when it was forced to surrender to the British. The territory of the South African Republic became known after this war as the Transvaal Colony.

#### Free State Republic

The independent Boer republic of Orange Free State evolved from colonial Britain's Orange River Sovereignty, enforced by the presence of British troops, which lasted from 1848 to 1854 in the territory between the Orange and Vaal rivers, named Transorange. Britain, due to the military burden imposed on it by the Crimean War in Europe, then withdrew its troops from the territory in 1854, when the territory along with other areas in the region was claimed by the Boers as an independent Boer republic, which they named the Orange Free State. In March 1858, after land disputes, cattle rustling and a series of raids and counter-raids, the Orange Free State declared war on the Basotho kingdom, which it failed to defeat. A succession of wars were conducted between the Boers and the Basotho for the next 10 years. The name Orange Free State was again changed to the Orange River Colony, created by Britain after the latter occupied it in 1900 and then annexed it in 1902 during the Second Boer War. The colony, with an estimated population of less than 400,000 in 1904 ceased to exist in 1910, when it was absorbed into the Union of South Africa as the Orange Free State Province.

#### Natalia

Natalia was a short-lived Boer republic established in 1839 by Boer Voortrekkers emigrating from the Cape Colony. In 1824 a party of 25 men under British Lieutenant F G Farewell arrived from the Cape Colony and established a settlement on the northern shore of the Bay of Natal, which would later become the port of Durban, so named after Benjamin D'Urban, a governor of the Cape Colony. Boer Voortrekkers in 1838 established the Republic of Natalia in the surrounding region, with its capital at Pietermaritzburg. On the night of 23/24 May 1842 British colonial forces attacked the Voortrekker camp at Congella. The attack failed, with British forces then retreating back to Durban, which the Boers besieged. A local trader Dick King and his servant Ndongeni, who later became folk heroes, were able to escape the blockade and ride to Grahamstown, a distance of 600 km (372.82 miles) in 14 days to raise British reinforcements. The reinforcements arrived in Durban 20 days later; the siege was broken and the Voortrekkers retreated. The Boers accepted British annexation in 1844. Many of the Natalia Boers who refused to acknowledge British rule trekked over the Drakensberg mountains to settle in the Orange Free State and Transvaal republics.

### Cape Colony

Between 1847 and 1854, Harry Smith, governor and high commissioner of the Cape Colony, annexed territories far to the north of the original British and Dutch settlement.
Smith's expansion of the Cape Colony resulted in conflict with disaffected Boers in the Orange River Sovereignty who in 1848 mounted an abortive rebellion at Boomplaats, where the Boers were defeated by a detachment of the Cape Mounted Rifles. Annexation also precipitated a war between British colonial forces and the indigenous Xhosa nation in 1850, in the eastern coastal region.
Starting from the mid-1800s, the Cape of Good Hope, which was then the largest state in southern Africa, began moving towards greater independence from Britain. In 1854, it was granted its first locally elected legislature, the Cape Parliament.
In 1872, after a long political struggle, it attained responsible government with a locally accountable executive and Prime Minister. The Cape nonetheless remained nominally part of the British Empire, even though it was self-governing in practice.
The Cape Colony was unusual in southern Africa in that its laws prohibited any discrimination on the basis of race and, unlike the Boer republics, elections were held according to the non-racial Cape Qualified Franchise system, whereby suffrage qualifications applied universally, regardless of race.
Initially, a period of strong economic growth and social development ensued. However, an ill-informed British attempt to force the states of southern Africa into a British federation led to inter-ethnic tensions and the First Boer War. Meanwhile, the discovery of diamonds around Kimberley and gold in the Transvaal led to a later return to instability, particularly because they fueled the rise to power of the ambitious colonialist Cecil Rhodes. As Cape Prime Minister, Rhodes curtailed the multi-racial franchise, and his expansionist policies set the stage for the Second Boer War.

### Natal

Indian slaves from the Dutch colonies in India had been introduced into the Cape area of South Africa by the Dutch settlers in 1654.
By the end of 1847, following annexation by Britain of the former Boer republic of Natalia, nearly all the Boers had left their former republic, which the British renamed Natal. The role of the Boer settlers was replaced by subsidised British immigrants of whom 5,000 arrived between 1849 and 1851.
By 1860, with slavery having been abolished in 1834, and after the annexation of Natal as a British colony in 1843, the British colonists in Natal (now kwaZulu-Natal) turned to India to resolve a labour shortage, as men of the local Zulu warrior nation were refusing to work on the plantations and farms established by the colonists. In that year, the SS Truro arrived in Durban harbour with over 300 Indians on board.
Over the next 50 years, 150,000 more indentured Indian servants and labourers arrived, as well as numerous free "passenger Indians," building the base for what would become the largest Indian diasporic community outside India.
By 1893, when the lawyer and social activist Mahatma Gandhi arrived in Durban, Indians outnumbered whites in Natal. The civil rights struggle of Gandhi's Natal Indian Congress failed; until the 1994 advent of democracy, Indians in South Africa were subject to most of the discriminatory laws that applied to all non-white inhabitants of the country.

### Griqua people

By the late 1700s, the Cape Colony population had grown to include a large number of mixed-race so-called "coloureds" who were the offspring of extensive interracial relations between male Dutch settlers, Khoikhoi women, and enslaved women imported from Dutch colonies in the East. Members of this mixed-race community formed the core of what was to become the Griqua people.
Under the leadership of a former slave named Adam Kok, these "coloureds" or Basters (meaning mixed race or multiracial) as they were named by the Dutch—a word derived from baster, meaning "bastard"—started trekking northward into the interior, through what is today named Northern Cape Province. The trek of the Griquas to escape the influence of the Cape Colony has been described as "one of the great epics of the 19th century." They were joined on their long journey by a number of San and Khoikhoi aboriginal people, local African tribesmen, and also some white renegades. Around 1800, they started crossing the northern frontier formed by the Orange River, arriving ultimately in an uninhabited area, which they named Griqualand.
In 1825, a faction of the Griqua people was induced by Dr John Philip, superintendent of the London Missionary Society in Southern Africa, to relocate to a place called Philippolis, a mission station for the San, several hundred miles southeast of Griqualand. Philip's intention was for the Griquas to protect the missionary station there against banditti in the region, and as a bulwark against the northward movement of white settlers from the Cape Colony. Friction between the Griquas and the settlers over land rights resulted in British troops being sent to the region in 1845. It marked the beginning of nine years of British intervention in the affairs of the region, which the British named Transorange.
In 1861, to avoid the imminent prospect of either being colonised by the Cape Colony or coming into conflict with the expanding Boer Republic of Orange Free State, most of the Philippolis Griquas embarked on a further trek. They moved about 500 miles eastward, over the Quathlamba (today known as the Drakensberg mountain range), settling ultimately in an area officially designated as "Nomansland", which the Griquas renamed Griqualand East. East Griqualand was subsequently annexed by Britain in 1874 and incorporated into the Cape Colony in 1879.
The original Griqualand, north of the Orange River, was annexed by Britain's Cape Colony and renamed Griqualand West after the discovery in 1871 of the world's richest deposit of diamonds at Kimberley, so named after the British Colonial Secretary, Earl Kimberley.
Although no formally surveyed boundaries existed, Griqua leader Nicolaas Waterboer claimed the diamond fields were situated on land belonging to the Griquas. The Boer republics of Transvaal and the Orange Free State also vied for ownership of the land, but Britain, being the preeminent force in the region, won control over the disputed territory. In 1878, Waterboer led an unsuccessful rebellion against the colonial authorities, for which he was arrested and briefly exiled.

### Factional conflicts
#### Wars against the Xhosa

In early South Africa, European notions of national boundaries and land ownership had no counterparts in African political culture. To Moshoeshoe the BaSotho chieftain from Lesotho, it was customary tribute in the form of horses and cattle represented acceptance of land use under his authority. To European settlers in Southern Africa, the same form of tribute was believed to constitute purchase and permanent ownership of the land under independent authority.
As European settlers started establishing permanent farms after trekking across the country in search of prime agricultural land, they encountered resistance from the local Bantu people who had originally migrated southwards from central Africa hundreds of years earlier. The consequent frontier wars became known as the Xhosa Wars (which were also referred to in contemporary discussion as the Kafir Wars or the Cape Frontier Wars). In the southeastern part of South Africa, Boer settlers and the Xhosa clashed along the Great Fish River, and in 1779 the First Xhosa War broke out. For nearly 100 years subsequently, the Xhosa fought the settlers sporadically, first the Boers or Afrikaners and later the British. In the Fourth Xhosa War, which lasted from 1811 to 1812, the British colonial authorities forced the Xhosa back across the Great Fish River and established forts along this boundary.
The increasing economic involvement of the British in southern Africa from the 1820s, and especially following the discovery of first diamonds at Kimberley and gold in the Transvaal, resulted in pressure for land and African labour, and led to increasingly tense relations with Southern African states.
In 1818 differences between two Xhosa leaders, Ndlambe and Ngqika, ended in Ngqika's defeat, but the British continued to recognise Ngqika as the paramount chief. He appealed to the British for help against Ndlambe, who retaliated in 1819 during the Fifth Frontier War by attacking the British colonial town of Grahamstown.

#### Wars against the Zulu

In the eastern part of what is today South Africa, in the region named Natalia by the Boer trekkers, the latter negotiated an agreement with Zulu King Dingane kaSenzangakhona allowing the Boers to settle in part of the then Zulu kingdom. Cattle rustling ensued and a party of Boers under the leadership of Piet Retief were killed.
Subsequent to the killing of the Retief party, the Boers fought against the Zulus, at the Ncome River on 16 December 1838. The Boers took a defensive position with the high banks of the Ncome River forming a natural barrier to their rear with their ox waggons as barricades between themselves and the attacking Zulu army in the clash known historically as the Battle of Blood River.
In the later annexation of the Zulu kingdom by imperial Britain, an Anglo-Zulu War was fought in 1879. Following Lord Carnarvon's successful introduction of federation in Canada, it was thought that similar political effort, coupled with military campaigns, might succeed with the African kingdoms, tribal areas and Boer republics in South Africa.
In 1874, Henry Bartle Frere was sent to South Africa as High Commissioner for the British Empire to bring such plans into being. Among the obstacles were the presence of the independent states of the South African Republic and the Kingdom of Zululand and its army. Frere, on his own initiative, without the approval of the British government and with the intent of instigating a war with the Zulu, had presented an ultimatum on 11 December 1878, to the Zulu king Cetshwayo with which the Zulu king could not comply. Bartle Frere then sent Lord Chelmsford to invade Zululand. The war is notable for several particularly bloody battles, including an overwhelming victory by the Zulu at the Battle of Isandlwana, as well as for being a landmark in the timeline of imperialism in the region.
Britain's eventual defeat of the Zulus, marking the end of the Zulu nation's independence, was accomplished with the assistance of Zulu collaborators who harboured cultural and political resentments against centralised Zulu authority. The British then set about establishing large sugar plantations in the area today named KwaZulu-Natal Province.

#### Wars with the Basotho

From the 1830s onwards, numbers of white settlers from the Cape Colony crossed the Orange River and started arriving in the fertile southern part of territory known as the Lower Caledon Valley, which was occupied by Basotho cattle herders under the authority of the Basotho founding monarch Moshoeshoe I. In 1845, a treaty was signed between the British colonists and Moshoeshoe, which recognised white settlement in the area. No firm boundaries were drawn between the area of white settlement and Moshoeshoe's kingdom, which led to border clashes. Moshoeshoe was under the impression he was loaning grazing land to the settlers in accordance with African precepts of occupation rather than ownership, while the settlers believed they had been granted permanent land rights. Afrikaner settlers in particular were loath to live under Moshoesoe's authority and among Africans.
The British, who at that time controlled the area between the Orange and Vaal Rivers called the Orange River Sovereignty, decided a discernible boundary was necessary and proclaimed a line named the Warden Line, dividing the area between British and Basotho territories. This led to conflict between the Basotho and the British, who were defeated by Moshoeshoe's warriors at the battle of Viervoet in 1851.
As punishment to the Basotho, the governor and commander-in-chief of the Cape Colony, George Cathcart, deployed troops to the Mohokare River; Moshoeshoe was ordered to pay a fine. When he did not pay the fine in full, a battle broke out on the Berea Plateau in 1852, where the British suffered heavy losses. In 1854, the British handed over the territory to the Boers through the signing of the Sand River Convention. This territory and others in the region then became the Republic of the Orange Free State.
A succession of wars followed from 1858 to 1868 between the Basotho kingdom and the Boer republic of Orange Free State. In the battles that followed, the Orange Free State tried unsuccessfully to capture Moshoeshoe's mountain stronghold at Thaba Bosiu, while the Sotho conducted raids in Free State territories. Both sides adopted scorched-earth tactics, with large swathes of pasturage and cropland being destroyed. Faced with starvation, Moshoeshoe signed a peace treaty on 15 October 1858, though crucial boundary issues remained unresolved. War broke out again in 1865. After an unsuccessful appeal for aid from the British Empire, Moshoeshoe signed the 1866 treaty of Thaba Bosiu, with the Basotho ceding substantial territory to the Orange Free State. On 12 March 1868, the British parliament declared the Basotho Kingdom a British protectorate and part of the British Empire. Open hostilities ceased between the Orange Free State and the Basotho. The country was subsequently named Basutoland and is presently named Lesotho.

#### Wars with the Ndebele

In 1836, when Boer Voortrekkers (pioneers) arrived in the northwestern part of present-day South Africa, they came into conflict with a Ndebele sub-group that the settlers named "Matabele", under chief Mzilikazi. A series of battles ensued, in which Mzilikazi was eventually defeated. He withdrew from the area and led his people northwards to what would later become the Matabele region of Southern Rhodesia (now Zimbabwe).
Other members of the Ndebele ethnic language group in different areas of the region similarly came into conflict with the Voortrekkers, notably in the area that would later become the Northern Transvaal. In September 1854, 28 Boers accused of cattle rustling were killed in three separate incidents by an alliance of the Ndebele chiefdoms of Mokopane and Mankopane. Mokopane and his followers, anticipating retaliation by the settlers, retreated into the mountain caves known as Gwasa, (or Makapansgat in Afrikaans). In late October, Boer commandos supported by local Kgatla tribal collaborators laid siege to the caves. By the end of the siege, about three weeks later, Mokopane and between 1,000 and 3,000 people had died in the caves. The survivors were captured and allegedly enslaved.

#### Wars with the Bapedi

The Bapedi wars, also known as the Sekhukhune wars, consisted of three separate campaigns fought between 1876 and 1879 against the Bapedi under their reigning monarch King Sekhukhune I, in the northeastern region known as Sekhukhuneland, bordering on Swaziland. Further friction was caused by the refusal of Sekhukhune to allow prospectors to search for gold in territory he considered to be sovereign and independent under his authority. The First Sekhukhune War of 1876 was conducted by the Boers, and the two separate campaigns of the Second Sekhukhune War of 1878/1879 were conducted by the British.
During the final campaign, Sekukuni (also spelled Sekhukhune) and members of his entourage took refuge in a mountain cave where he was cut off from food and water. He eventually surrendered to a combined deputation of Boer and British forces on 2 December 1879. Sekhukhune, members of his family and some Bapedi generals were subsequently imprisoned in Pretoria for two years, with Sekhukhuneland becoming part of the Transvaal Republic. No gold was ever discovered in the annexed territory.

### Discovery of diamonds

The first diamond discoveries between 1866 and 1867 were alluvial, on the southern banks of the Orange River. By 1869, diamonds were found at some distance from any stream or river, in hard rock called blue ground, later called kimberlite, after the mining town of Kimberley where the diamond diggings were concentrated. The diggings were located in an area of vague boundaries and disputed land ownership. Claimants to the site included the South African (Transvaal) Republic, the Orange Free State Republic, and the mixed-race Griqua nation under Nicolaas Waterboer. Cape Colony Governor Henry Barkly persuaded all claimants to submit themselves to a decision of an arbitrator and so Robert W Keate, Lieutenant-Governor of Natal was asked to arbitrate. Keate awarded ownership to the Griquas. Waterboer, fearing conflict with the Boer republic of Orange Free State, subsequently asked for and received British protection. Griqualand then became a separate Crown Colony renamed Griqualand West in 1871, with a Lieutenant-General and legislative council.
The Crown Colony of Griqualand West was annexed into the Cape Colony in 1877, enacted into law in 1880. No material benefits accrued to the Griquas as a result of either colonisation or annexation; they did not receive any share of the diamond wealth generated at Kimberley. The Griqua community became subsequently dissimulated.
By the 1870s and 1880s the mines at Kimberley were producing 95% of the world's diamonds. The widening search for gold and other resources were financed by the wealth produced and the practical experience gained at Kimberley. Revenue accruing to the Cape Colony from the Kimberley diamond diggings enabled the Cape Colony to be granted responsible government status in 1872, since it was no longer dependent on the British Treasury and hence allowing it to be fully self-governing in similar fashion to the federation of Canada, New Zealand and some of the Australian states. The wealth derived from Kimberley diamond mining, having effectively tripled the customs revenue of the Cape Colony from 1871 to 1875, also doubled its population, and allowed it to expand its boundaries and railways to the north.
In 1888, British mining magnate Cecil John Rhodes co-founded De Beers Consolidated Mines at Kimberley, after buying up and amalgamating the individual claims with finance provided by the Rothschild dynasty. Abundant, cheap African labour was central to the success of Kimberley diamond mining, as it would later also be to the success of gold mining on the Witwatersrand. It has been suggested in some academic circles that the wealth produced at Kimberley was a significant factor influencing the Scramble for Africa, in which European powers had by 1902 competed with each other in drawing arbitrary boundaries across almost the entire continent and dividing it among themselves.

### Discovery of gold

Although many tales abound, there is no conclusive evidence as to who first discovered gold or the manner in which it was originally discovered in the late 19th century on the Witwatersrand (meaning White Waters Ridge) of the Transvaal. The discovery of gold in February 1886 at a farm called Langlaagte on the Witwatersrand in particular precipitated a gold rush by prospectors and fortune seekers from all over the world. Except in rare outcrops, however, the main gold deposits had over many years become covered gradually by thousands of feet of hard rock. Finding and extracting the deposits far below the ground called for the capital and engineering skills that would soon result in the deep-level mines of the Witwatersrand producing a quarter of the world's gold, with the "instant city" of Johannesburg arising astride the main Witwatersrand gold reef.
Within two years of gold being discovered on the Witwatersrand, four mining finance houses had been established. The first was formed by Hermann Eckstein in 1887, eventually becoming Rand Mines. Cecil Rhodes and Charles Rudd followed, with their Gold Fields of South Africa company. Rhodes and Rudd had earlier made fortunes from diamond mining at Kimberley. In 1895 there was an investment boom in Witwatersrand gold-mining shares. The precious metal that underpinned international trade would dominate South African exports for decades to come.
Of the leading 25 foreign industrialists who were instrumental in opening up deep level mining operations at the Witwatersrand gold fields, 15 were Jewish, 11 of the total were from Germany or Austria, and nine of that latter category were also Jewish. The commercial opportunities opened by the discovery of gold attracted many other people of European Jewish origin. The Jewish population of South Africa in 1880 numbered approximately 4,000; by 1914 it had grown to more than 40,000, mostly migrants from Lithuania.
The working environment of the mines, meanwhile, as one historian has described it, was "dangerous, brutal and onerous", and therefore unpopular among local black Africans. Recruitment of black labour began to prove difficult, even with an offer of improved wages. In mid-1903 there remained barely half of the 90,000 black labourers who had been employed in the industry in mid-1899. The decision was made to start importing Chinese indentured labourers who were prepared to work for far less wages than local African labourers. The first 1,000 indentured Chinese labourers arrived in June 1904. By January 1907, 53,000 Chinese labourers were working in the gold mines.

### First Anglo–Boer War

The Transvaal Boer republic was forcefully annexed by Britain in 1877, during Britain's attempt to consolidate the states of southern Africa under British rule. Long-standing Boer resentment turned into full-blown rebellion in the Transvaal and the first Anglo–Boer War, also known as the Boer Insurrection, broke out in 1880. The conflict ended almost as soon as it began with a decisive Boer victory at Battle of Majuba Hill (27 February 1881).
The republic regained its independence as the Zuid-Afrikaansche Republiek ("South African Republic"), or ZAR. Paul Kruger, one of the leaders of the uprising, became President of the ZAR in 1883. Meanwhile, the British, who viewed their defeat at Majuba as an aberration, forged ahead with their desire to federate the Southern African colonies and republics. They saw this as the best way to come to terms with the fact of a white Afrikaner majority, as well as to promote their larger strategic interests in the area.
The cause of the Anglo–Boer wars has been attributed to a contest over which nation would control and benefit most from the Witwatersrand gold mines. The enormous wealth of the mines was in the hands of European "Randlords" overseeing the mainly British foreign managers, mining foremen, engineers and technical specialists, characterised by the Boers as uitlander, meaning aliens. The "aliens" objected to being denied parliamentary representation and the right to vote, and they complained also of bureaucratic government delays in the issuing of licenses and permits, and general administrative incompetence on the part of the government.
In 1895, a column of mercenaries in the employ of Cecil John Rhodes' Rhodesian-based Charter Company and led by Captain Leander Starr Jameson had entered the ZAR with the intention of sparking an uprising on the Witwatersrand and installing a British administration there. The armed incursion became known as the Jameson Raid. It ended when the invading column was ambushed and captured by Boer commandos. President Kruger suspected the insurgency had received at least the tacit approval of the Cape Colony government under the premiership of Cecil John Rhodes, and that Kruger's South African Republic faced imminent danger. Kruger reacted by forming an alliance with the neighbouring Boer republic of Orange Free State. This did not prevent the outbreak of a Second Anglo–Boer war.

### Second Anglo–Boer War

Renewed tensions between Britain and the Boers peaked in 1899 when the British demanded voting rights for the 60,000 foreign whites on the Witwatersrand. Until that point, President Paul Kruger's government had excluded all foreigners from the franchise. Kruger rejected the British demand and called for the withdrawal of British troops from the borders of the South African Republic. When the British refused, Kruger declared war. This Second Anglo–Boer War, also known as the South African War lasted longer than the first, with British troops being supplemented by colonial troops from Southern Rhodesia, Canada, India, Australia and New Zealand. It has been estimated that the total number of British and colonial troops deployed in South Africa during the war outnumbered the population of the two Boer Republics by more than 150,000. By June 1900, Pretoria, the last of the major Boer towns, had surrendered. Yet resistance by Boer bittereinders (meaning those who would fight to the bitter end) continued for two more years with guerrilla warfare, which the British met in turn with scorched earth tactics. The Boers kept on fighting.
The British suffragette Emily Hobhouse visited British concentration camps in South Africa and produced a report condemning the appalling conditions there. By 1902, 26,000 Boer women and children had died of disease and neglect in the camps.
The Anglo–Boer War affected all ethnic groups in South Africa. Black people were recruited or conscripted by both sides into working for them either as combatants or non-combatants to sustain the respective war efforts of both the Boers and the British. The official statistics of blacks killed in action are inaccurate. Most of the bodies were dumped in unmarked graves. It has, however, been verified that 17,182 black people died mainly of diseases in the Cape concentration camps alone, but this figure is not accepted historically as a true reflection of the overall numbers. Concentration camp superintendents did not always record the deaths of black inmates in the camps.
From the outset of hostilities in October 1899 to the signing of peace on 31 May 1902 the war claimed the lives of 22,000 imperial soldiers and 7,000 republican fighters. In terms of the peace agreement known as the Treaty of Vereeniging, the Boer republics acknowledged British sovereignty, while the British in turn committed themselves to reconstruction of the areas under their control.

## Union of South Africa (1910–1948)

During the years immediately following the Anglo–Boer wars, Britain set about unifying the four colonies including the former Boer republics into a single self-governed country called the Union of South Africa. This was accomplished after several years of negotiations, when the South Africa Act 1909 consolidated the Cape Colony, Natal, Transvaal, and Orange Free State into one nation. Under the provisions of the act, the Union became an independent Dominion of the British Empire, governed under a form of constitutional monarchy, with the British monarch represented by a Governor-General. This status was affirmed and further defined at the 1926 Imperial Conference, where the Balfour Declaration officially recognized the Dominions, including South Africa, as "autonomous communities within the British Empire, equal in status, in no way subordinate one to another in any aspect of their domestic or external affairs." Prosecutions before the courts of the Union of South Africa were instituted in the name of the Crown and government officials served in the name of the Crown. The British High Commission territories of Basutoland (now Lesotho), Bechuanaland (now Botswana), and Swaziland (now Eswatini) continued under direct rule from Britain.
Among other harsh segregationist laws, including denial of voting rights to black people, the Union parliament enacted the 1913 Natives' Land Act, which earmarked only eight percent of South Africa's available land for black occupancy. White people, who constituted 20 percent of the population, held 90 percent of the land. The Land Act would form a cornerstone of legalised racial discrimination for the next nine decades.
General Louis Botha headed the first government of the new Union, with General Jan Smuts as his deputy. Their South African National Party, later known as the South African Party or SAP, followed a generally pro-British, white-unity line. The more radical Boers split away under the leadership of General Barry Hertzog, forming the National Party (NP) in 1914. The National Party championed Afrikaner interests, advocating separate development for the two white groups, and independence from Britain.
Dissatisfaction with British influence in the Union's affairs reached a climax in September 1914, when impoverished Boers, anti-British Boers and bitter-enders launched a rebellion. The rebellion was suppressed, and at least one officer was sentenced to death and executed by firing squad.
In 1924 the Afrikaner-dominated National Party came to power in a coalition government with the Labour Party. Afrikaans, previously regarded as a low-level Dutch patois, replaced Dutch as an official language of the Union. English and Dutch became the two official languages in 1925.
The Union of South Africa came to an end after a referendum on 5 October 1960, in which a majority of white South Africans voted in favour of unilateral withdrawal from the British Commonwealth and the establishment of a Republic of South Africa.

### First World War

At the outbreak of World War I, South Africa joined Great Britain and the Allies against the German Empire. Both Prime Minister Louis Botha and Defence Minister Jan Smuts were former Second Boer War generals who had previously fought against the British, but they now became active and respected members of the Imperial War Cabinet. Elements of the South African Army refused to fight against the Germans and along with other opponents of the government; they rose in an open revolt known as the Maritz Rebellion. The government declared martial law on 14 October 1914, and forces loyal to the government under the command of generals Louis Botha and Jan Smuts defeated the rebellion. The rebel leaders were prosecuted, fined heavily and sentenced to imprisonment ranging from six to seven years.
Public opinion in South Africa split along racial and ethnic lines. The British elements strongly supported the war, and formed by far the largest military component. Likewise the Indian element (led by Mahatma Gandhi) generally supported the war effort. Afrikaners were split, with some like Botha and Smuts taking a prominent leadership role in the British war effort. This position was rejected by many rural Afrikaners who supported the Maritz Rebellion. The trade union movement was divided. Many urban blacks supported the war expecting it would raise their status in society. Others said it was not relevant to the struggle for their rights. The Coloured element was generally supportive and many served in a Coloured Corps in East Africa and France, also hoping to better themselves after the war.
With a population of roughly 6 million, between 1914–1918, over 250,000 South Africans of all races voluntarily served their country. Thousands more served in the British Army directly, with over 3,000 joining the British Royal Flying Corps and over 100 volunteering for the Royal Navy. It is likely that around 50% of white men of military age served during the war, more than 146,000 whites. 83,000 Black men and 2,500 Coloured and Asian men also served in either German South-West Africa, East Africa, the Middle East, or on the Western Front in Europe. Over 7,000 South Africans were killed, and nearly 12,000 were wounded during the course of the war. Eight South Africans won the Victoria Cross for gallantry, the Empire's highest and most prestigious military medal. The Battle of Delville Wood and the sinking of the SS Mendi being the greatest single incidents of loss of life.
25,000 Black South Africans were recruited at the request of the British War Cabinet to serve as non-combatant labourers in the South African Native Labour Contingent (SANLC). 21,000 of these people were deployed to France as stevedores at French ports, where they were housed in segregated compounds. A total of 616 men from the Fifth Battalion of the SANLC drowned on 21 February 1917 when the troopship SS Mendi, on which they were being transported to France, collided with another vessel near the Isle of Wight. The Mendi disaster was one of South Africa's worst tragedies of the Great War, second perhaps only to the Battle of Delville Wood. The South African government issued no war service medal to the black servicemen and the special medal issued by King George V to "native troops" that served the Empire, the British War Medal in bronze, was disallowed and not issued to the SANLC.
Black and mixed-race South Africans who had supported the war were embittered when post-war South Africa saw no easing of white domination and racial segregation.
The assistance that South Africa gave the British Empire was significant. Two German African colonies were occupied, either by South Africa alone or with significant South African assistance. Manpower, from all races, helped Allied operations not just on the Western Front and Africa, but also in the Middle East against the Ottoman Empire. South Africa's ports and harbours on the Home Front were a crucial strategic asset when conducting a war on a global scale. Providing important rest and refuelling stations, the Royal Navy could ensure vital sea lane connections to the British Raj, and the Far East stayed open.
Economically, South Africa supplied two-thirds of gold production in the British Empire, with most of the remainder coming from Australia. At the start of the war, Bank of England officials in London worked with South Africa to block gold shipments to Germany, and force mine owners to sell only to the British Treasury, at prices set by the Treasury. This facilitated purchases of munitions and food in the United States and neutral countries.

### Second World War

During World War II, South Africa's ports and harbours, such as at Cape Town, Durban, and Simon's Town, were important strategic assets to the British Royal Navy. South Africa's top-secret Special Signals Service played a significant role in the early development and deployment of radio detection and ranging (radar) technology used in protecting the vital coastal shipping route around southern Africa. By August 1945, South African Air Force aircraft in conjunction with British and Dutch aircraft stationed in South Africa had intercepted 17 enemy ships, assisted in the rescue of 437 survivors of sunken ships, attacked 26 of the 36 enemy submarines operating the vicinity of the South African coast, and flown 15,000 coastal patrol sorties.
About 334,000 South Africans volunteered for full-time military service in support of the Allies abroad. Nearly 9,000 were killed in action. On 21 June 1942 nearly 10,000 South African soldiers, representing one-third of the entire South African force in the field, were taken prisoner by German Field Marshal Rommel's forces in the fall of Tobruk, Libya. A number of South African fighter pilots served with distinction in the Royal Air Force during the Battle of Britain, including Group Captain Adolph "Sailor" Malan who led 74 Squadron and established a record of personally destroying 27 enemy aircraft.
General Jan Smuts was the only important non-British general whose advice was constantly sought by Britain's war-time Prime Minister Winston Churchill. Smuts was invited to the Imperial War Cabinet in 1939 as the most senior South African in favour of war. On 28 May 1941, Smuts was appointed a Field Marshal of the British Army, becoming the first South African to hold that rank. When the war ended, Smuts represented South Africa in San Francisco at the drafting of the United Nations Charter in May 1945. Just as he had done in 1919, Smuts urged the delegates to create a powerful international body to preserve peace; he was determined that, unlike the League of Nations, the UN would have teeth. Smuts also signed the Paris Peace Treaty, resolving the peace in Europe, thus becoming the only signatory of both the treaty ending the First World War, and that which ended the Second.

#### Pro-German and pro-Nazi attitudes

After the suppression of the abortive, pro-German Maritz Rebellion during the South African World War I campaign against German South West Africa in 1914, the South African rebel General Manie Maritz escaped to Spain. He returned in 1923, and continued working in the Union of South Africa as a German Spy for the Third Reich.
In 1896, the German Kaiser Kaiser Wilhelm had enraged Britain by sending congratulations to Boer republican leader Paul Kruger after Kruger's commandos captured a column of British South Africa Company soldiers engaged in an armed incursion and abortive insurrection, known historically as the Jameson Raid, into Boer territory. Germany was the primary supplier of weapons to the Boers during the subsequent Anglo–Boer war. Kaiser Wilhelm's government arranged for the two Boer Republics to purchase modern breech-loading Mauser rifles and millions of smokeless gunpowder cartridges. Germany's Ludwig Loewe company, later known as Deutsche Waffen-und Munitionfabriken, delivered 55,000 of these rifles to the Boers in 1896.
The early-1940s saw the pro-Nazi Ossewa Brandwag (OB) movement become half-a-million strong, including future prime minister John Vorster and Hendrik van den Bergh, the future head of police intelligence. The anti-semitic Boerenasie (Boer Nation) and other similar groups soon joined them. When the war ended, the OB was one of the anti-parliamentary groups absorbed into the National Party.
The South African Afrikaner Weerstandsbeweging or AWB (meaning Afrikaner Resistance Movement), a militant neo-Nazi, mainly Afrikaner white supremacist movement that arose in the 1970s, and was active until the mid-1990s, openly used a flag that closely resembled the swastika. In the early to mid-1990s, the AWB attempted unsuccessfully through various acts of public violence and intimidation to derail the country's transition to democracy. After the country's first multiracial democratic elections in 1994, a number of terrorist bomb blasts were linked to the AWB. On 11 March 1994, several hundred AWB members formed part of an armed right-wing force that invaded the nominally independent "homeland" territory of Bophuthatswana, in a failed attempt to prop up its unpopular, conservative leader Chief Lucas Mangope. The AWB leader Eugène Terre'Blanche was murdered by farm workers on 3 April 2010.
A majority of politically moderate Afrikaners were pragmatic and did not support the AWB's extremism.

## Apartheid era (1948–1994)
### Apartheid legislation

The segregationist policies of apartheid stemmed from colonial legislation introduced during the period of Dutch rule in the 17th century, which was continued and expanded upon during the British colonial era, and reached its apogee during the Boer-dominated Union of South Africa.
From 1948, successive National Party administrations formalised and extended the existing system of racial discrimination and denial of human rights into the legal system of apartheid, which lasted until 1991. A key act of legislation during this time was the Homeland Citizens Act of 1970. This act augmented the Native Land Act of 1913 through the establishment of so-called "homelands" or "reserves". It authorised the forced evictions of thousands of African people from urban centres in South Africa and South West Africa (now Namibia) to what became described colloquially as "Bantustans" or the "original homes", as they were officially referred to, of the black ethnic groups of South Africa. The same legislation applied also to South West Africa over which South Africa had continued after World War I to exercise a disputed League of Nations mandate. Pro-apartheid South Africans attempted to justify the Bantustan policy by citing the British government's 1947 partition of India, which they claimed was a similar situation that did not arouse international condemnation.
Although many important events occurred during this period, apartheid remained the central pivot around which most of the historical issues of this period revolved, including violent conflict and the militarisation of South African society. By 1987, total military expenditure amounted to about 28% of the national budget.
In the aftermath of the 1976 Soweto uprising and the security clampdown that accompanied it, Joint Management Centres (JMCs) operating in at least 34 State-designated "high-risk" areas became the key element in a National Security Management System. The police and military who controlled the JMCs by the mid-1980s were endowed with influence in decision-making at every level, from the Cabinet down to local government.

### UN embargo

On 16 December 1966, United Nations General Assembly Resolution 2202 A (XXI) identified apartheid as a "crime against humanity". The Apartheid Convention, as it came to be known, was adopted by the General Assembly on 30 November 1973 with 91 member states voting in favour, four against (Portugal, South Africa, the United Kingdom and the United States) and 26 abstentions. The convention came into force on 18 July 1976. On 23 October 1984 the UN Security Council endorsed this formal determination. The convention declared that apartheid was both unlawful and criminal because it violated the Charter of the United Nations. The General Assembly had already suspended South Africa from the UN organisation on 12 November 1974. On 4 November 1977, the Security Council imposed a mandatory arms embargo in terms of Resolution 181 calling upon all States to cease the sale and shipment of arms, ammunition and military vehicles to South Africa. The country would only be readmitted to the UN in 1994 following its transition to democracy. Apartheid South Africa reacted to the UN arms embargo by strengthening its military ties with Israel, and establishing its own arms manufacturing industry with the help of Israel. Four hundred M-113A1 armoured personnel carriers, and 106mm recoilless rifles manufactured in the United States were delivered to South Africa via Israel.

### Extra-judicial killings

In the mid-1980s, police and army death squads conducted state-sponsored assassinations of dissidents and activists. By mid-1987 the Human Rights Commission knew of at least 140 political assassinations in the country, while about 200 people died at the hands of South African agents in neighbouring states. The exact numbers of all the victims may never be known. Strict censorship disallowed journalists from reporting, filming or photographing such incidents, while the government ran its own covert disinformation programme that provided distorted accounts of the extrajudicial killings. At the same time, State-sponsored vigilante groups carried out violent attacks on communities and community leaders associated with resistance to apartheid. The attacks were then falsely attributed by the government to "black-on-black" or factional violence within the communities.
The Truth and Reconciliation Commission (TRC) would later establish that a covert, informal network of former or still serving army and police operatives, frequently acting in conjunction with extreme right-wing elements, was involved in actions that could be construed as fomenting violence and which resulted in gross human rights violations, including random and targeted killings. Between 1960–1994, according to statistics from the Truth and Reconciliation Commission, the Inkatha Freedom Party was responsible for 4,500 deaths, South African Police 2,700, and the ANC about 1,300.
In early 2002, a planned military coup by a white supremacist movement known as the Boeremag (Boer Force) was foiled by the South African police. Two dozen conspirators including senior South African Army officers were arrested on charges of treason and murder, after a bomb explosion in Soweto. The effectiveness of the police in foiling the planned coup strengthened public perceptions that the post-1994 democratic order was irreversible.
The TRC, at the conclusion of its mandate in 2004, handed over a list of 300 names of alleged perpetrators to the National Prosecuting Authority (NPA) for investigation and prosecution by the NPA's Priority Crimes Litigation Unit. Less than a handful of prosecutions were ever pursued.

### Military operations in frontline states

South African security forces during the latter part of the apartheid era had a policy of destabilising neighbouring states, supporting opposition movements, conducting sabotage operations and attacking ANC bases and places of refuge for exiles in those states. These states, forming a regional alliance of southern African states, were named collectively as the Frontline States: Angola, Botswana, Lesotho, Mozambique, Swaziland, Tanzania, Zambia and, from 1980, Zimbabwe.
In early-November 1975, immediately after Portugal granted independence to its former African colony of Angola, civil war broke out between the rival UNITA and MPLA movements. In order to prevent UNITA's collapse and cement the rule of a friendly government, South Africa intervened on 23 October, sending between 1,500 and 2,000 troops from Namibia into southern Angola in order to fight the MPLA. In response to the South African intervention, Cuba sent 18,000 soldiers as part of a large-scale military intervention nicknamed Operation Carlota in support of the MPLA. Cuba had initially provided the MPLA with 230 military advisers prior to the South African intervention. The Cuban intervention was decisive in helping reverse SADF and UNITA advances and cement MPLA rule in Angola. More than a decade later 36,000 Cuban troops were deployed throughout the country helping providing support for MPLA's fight with UNITA. The civil war in Angola resulted in 550,000–1,250,000 deaths in total mostly from famine. Most of the deaths occurred between 1992 and 1993, after South African and Cuban involvement had ended.
Between 1975 and 1988, the SADF continued to stage massive conventional raids into Angola and Zambia to eliminate PLAN's forward operating bases across the border from Namibia as well as provide support for UNITA. A controversial bombing and airborne assault conducted by 200 South African paratroopers on 4 May 1978 at Cassinga in southern Angola, resulted in around 700 South West Africans being killed, including PLAN militants and a large number of women and children. Colonel Jan Breytenbach, the South African parachute battalion commander, claimed it was "recognised in Western military circles as the most successful airborne assault since World War II." The Angolan government described the target of the attack as a refugee camp. The United Nations Security Council on 6 May 1978 condemned South Africa for the attack. On 23 August 1981 South African troops again launched an incursion into Angola with collaboration and encouragement provided by the American Central Intelligence Agency (CIA). The Angolan army, in resisting what it perceived as a South African invasion, was supported by a combination of Cuban forces and PLAN and ANC guerrillas, all armed with weapons supplied by the Soviet Union. The apartheid-era South African military and political intelligence services, for their part, worked closely with American, British and West German secret services throughout the Cold War.
Both South Africa and Cuba claimed victory at the decisive battle of Cuito Cuanavale, which have been described as "the fiercest in Africa since World War II". However, the South African military had lost air superiority and its technological advantage, largely due to an international arms embargo against the country. South African involvement in Angola ended formally after the signing of a United Nations-brokered agreement known as the New York Accords between the governments of Angola, Cuba and South Africa, resulting in the withdrawal of all foreign troops from Angola and also South Africa's withdrawal from South West Africa (now Namibia), which the UN regarded as illegally occupied since 1966.
South Africa in the 1980s also provided logistical and other covert support to Resistência Nacional Moçambicana (RENAMO) rebels, in neighbouring Mozambique fighting the FRELIMO-run government during the Mozambique Civil War, and it launched cross-border raids into Lesotho, Swaziland and Botswana, killing or capturing a number of South African exiles.

### Resistance to apartheid

From the 1940s to the 1960s, anti-apartheid resistance within the country took the form mainly of passive resistance, influenced in part by the pacifist ideology of Mahatma Gandhi. After the March 1960 massacre of 69 peaceful demonstrators at Sharpeville, and the subsequent declaration of a state of emergency, and the banning of anti-apartheid parties including the African National Congress (ANC), the Pan-Africanist Congress (PAC), and the Communist Party of South Africa, the focus of national resistance turned to armed struggle and underground activity. The armed wing of the ANC, Umkhonto weSizwe (abbreviation MK, meaning Spear of the Nation) claimed moral legitimacy for the resort to violence on the grounds of necessary defence and just war. From the 1960s onwards until 1989, MK carried out numerous acts of sabotage and attacks on military and police personnel. The Truth and Reconciliation Commission noted in 2003 that, despite the ANC's stated policy of attacking only military and police targets, "the majority of casualties of MK operations were civilians."
Organised resistance to Afrikaner nationalism was not confined exclusively to Black and Coloured activists. A movement known as the Torch Commando was formed in the 1950s, led by white war veterans who had fought the Axis Powers in Europe and North Africa during World War II. With 250,000 paid-up members at the height of its existence, it was the largest white protest movement in the country's history. By 1952, the brief flame of mass-based white radicalism was extinguished, when the Torch Commando disbanded due to government legislation under the Suppression of Communism Act, 1950. Some members of the Torch Commando subsequently became leading figures in the armed wing of the banned African National Congress.
The national liberation movement was divided in the early 1960s when an "Africanist" faction within the ANC objected to an alliance between the ANC and the Communist Party of South Africa. Leaders of the Communist Party of South Africa were mostly white. The Africanists broke away from the ANC to form the Pan-Africanist Congress and its military wing named Poqo, which became active mainly in the Cape provinces. During the early-1990s, Poqo was renamed Azanian People's Liberation Army (APLA). Its underground cells conducted armed robberies to raise funds and obtain weapons and vehicles. Civilians were killed or injured in many of these robberies. In 1993, attacks on white civilian targets in public places increased. APLA denied the attacks were racist in character, claiming that the attacks were directed against the apartheid government as all whites, according to the PAC, were complicit in the policy of apartheid. An attack on a Christian church in Cape Town in 1993, left eleven people dead and 58 injured.
Hundreds of students and others who fled to neighbouring countries, especially Botswana, to avoid arrest after the Soweto uprising of 16 June 1976, provided a fertile recruiting ground for the military wings of both the ANC and PAC. The uprising had been precipitated by Government legislation forcing African students to accept Afrikaans as the official medium for tuition, with support from the wider Black Consciousness Movement. The uprising spread throughout the country. By the time it was finally quelled, hundreds of protesters had been shot dead with many more wounded or arrested by police.
A non-racial United Democratic Front (UDF) coalition of about 400 civic, church, student, trade union and other organisations emerged in 1983. At its peak in 1987, the UDF had some 700 affiliates and about 3,000,000 members. A strong relationship existed between the African National Congress (ANC) and the UDF, based on the shared mission statement of the Freedom Charter. Following restrictions placed on its activities, the UDF was replaced in 1988 by the Mass Democratic Movement, a loose and amorphous alliance of anti-apartheid groups that had no permanent structure, making it difficult for the government to place a ban on its activities.
A total of 130 political prisoners were hanged on the gallows of Pretoria Central Prison between 1960 and 1990. The prisoners were mainly members of the Pan Africanist Congress and United Democratic Front.

## Democratic period (1994–present)

The dissolution of the Soviet Union in the late-1980s meant the African National Congress (ANC) in alliance with the South African Communist Party, could no longer depend on the Soviet Union for weaponry and political support. It also meant the apartheid government could no longer link apartheid and its purported legitimacy to the protection of Christian values and civilisation in the face of the rooi gevaar, meaning "red danger" or the threat of communism. Both sides were forced to the negotiating table, with the result that in June 1991, all apartheid laws were finally rescinded- opening the way for the country's first multiracial democratic elections three years later. As the culmination of mounting local and international opposition to apartheid in the 1980s, including the armed struggle, widespread civil unrest, economic and cultural sanctions by the international community, and pressure from the anti-apartheid movement around the world, State President F. W. de Klerk announced the lifting of the ban on the African National Congress, the Pan Africanist Congress and the South African Communist Party, as well as the release of political prisoner Nelson Mandela on 2 February 1990, after twenty-seven years in prison. In a referendum held on 17 March 1992, the white electorate voted 68% in favour of democracy. After lengthy negotiations under the auspices of the Convention for a Democratic South Africa (CODESA), a draft constitution was published on 26 July 1993, containing concessions towards all sides: a federal system of regional legislatures, equal voting-rights regardless of race, and a bicameral legislature.
From 26–29 April 1994, the South African population voted in the first universal suffrage general elections. The African National Congress won, well ahead of the governing National Party and the Inkatha Freedom Party. The Democratic Party and Pan Africanist Congress, among others, formed a parliamentary opposition in the country's first non-racial parliament. Nelson Mandela was elected as President on 9 May 1994 and formed a Government of National Unity, consisting of the ANC, the National Party and Inkatha. On 10 May 1994 Mandela was inaugurated as South Africa's new President in Pretoria with Thabo Mbeki and F. W. De Klerk as his vice-presidents. The Government of National Unity lapsed at the end of the first parliament sitting in 1999, with the ANC becoming the sole party in power while maintaining a strategic alliance with the Congress of South African Trade Unions (COSATU) and the South African Communist Party. After considerable debate, and following submissions from advocacy groups, individuals and ordinary citizens, the Parliament enacted a new Constitution and Bill of Rights in 1996. The death penalty was abolished, land reform and redistribution policies were introduced, and equitable labour laws legislated.
The ANC had risen to power on the strength of a socialist agenda embodied in a Freedom Charter, which was intended to form the basis of ANC social, economic and political policies. The Charter decreed that "the national wealth of our country, the heritage of South Africans, shall be restored to the people; the mineral wealth beneath the soil, the banks and monopoly industry shall be transferred to the ownership of the people". ANC icon Nelson Mandela, asserted in a statement released on 25 January 1990: "The nationalisation of the mines, banks and monopoly industries is the policy of the ANC, and a change or modification of our views in this regard is inconceivable."
Following the ANC's electoral victory in 1994, the eradication of mass poverty through nationalisation was never implemented. The ANC-led government, in a historic reversal of policy, adopted neoliberalism instead. A wealth tax on the super-rich to fund developmental projects was set aside, while domestic and international corporations, enriched by apartheid, were excused from any financial reparations. Large corporations were allowed to shift their main listings abroad. According to Solomon Johannes Terreblanche, a South African academic economist, the government's concessions to big business represented "treacherous decisions that [will] haunt South Africa for generations to come". In the 2024 national election the African National Congress (ANC) failed to secure more than 50% of the vote for the first time in the democratic era.

### Emigration

The immediate post-apartheid period was marked by an exodus of skilled, white South Africans amid crime related safety concerns. The South African Institute of Race Relations estimated in 2008 that 800,000 or more white people had emigrated since 1995, out of the approximately 4,000,000 who were in South Africa when apartheid formally ended the year before. Large white South African diasporas, both English- and Afrikaans-speaking, sprouted in Australia, New Zealand, North America, and especially in the UK, to which around 550,000 South Africans emigrated. As of 2021, tens of thousands of white South Africans continue to emigrate each year. By 2019 the number of skilled black South Africans emigrating out of the country had surpassed the number of white emigres.

### Financial burdens

The apartheid government had declared a moratorium on foreign debt repayments in the mid-1980s, when it declared a state of emergency in the face of escalating civil unrest. With the formal end of apartheid in 1994, the new democratic government was saddled with an onerous foreign debt amounting to R86.7B (US$14B at then current exchange rates) accrued by the former apartheid regime. The cash-strapped post-apartheid government was obliged to repay this debt or else face a credit downgrading by foreign financial institutions. The debt was finally settled in September 2001.
A further financial burden was imposed on the new post-apartheid government through its obligation to provide antiretroviral (ARV) treatment to impoverished victims of the HIV/AIDS epidemic sweeping the country. South Africa had the highest prevalence of HIV/AIDS compared to any other country in the world, with 5,600,000 people afflicted by the disease and 270,000 HIV-related deaths were recorded in 2011. By that time, more than 2,000,000 children were orphaned due to the epidemic. The provision of ARV treatment resulted in 100,000 fewer AIDS-related deaths in 2011 than in 2005.

### Labour relations

Migrant labour remained a fundamental aspect of the South African mining industry, which employed half a million mostly black miners. Labour unrest in the industry resulted in a massacre in mid-August 2012, when anti-riot police shot dead 34 striking miners and wounded many more in what is known as the Marikana massacre. The incident was widely criticised by the public, civil society organisations and religious leaders. The migrant labour system was identified as a primary cause of the unrest. Multi-national mining corporations including Anglo-American Corporation, Lonmin, and Anglo Platinum, were accused of failing to address the enduring legacies of apartheid.

### Poverty

In 2014, around 47% of (mostly black) South Africans lived in poverty, making it one of the most unequal countries in the world. Widespread dissatisfaction with the slow pace of socio-economic transformation, government incompetence and maladministration, and other public grievances in the post-apartheid era, precipitated many violent protest demonstrations. In 2007, less than half the protests were associated with some form of violence, compared with 2014, when almost 80% of protests involved violence on the part of the participants or the authorities. The slow pace of transformation also fomented tensions within the tripartite alliance between the ANC, the Communist Party and the Congress of South African Trade Unions.

### Corruption

During the administration of President Jacob Zuma corruption in South Africa had also become a growing problem. Notable corruption related scandals during this period included incidents of widespread state capture often involving allegations against the Gupta family. These also involved corruption related financial difficulties at some state owned enterprises such as Eskom and South African Airways that had a notable negative economic impact on the country's finances. Other corruption related scandals to emerge during this period included the collapse of VBS Mutual Bank and Bosasa. The Zondo Commission of Inquiry was appointed during the Presidency of Cyril Ramaphosa to investigate allegations of state capture related corruption.

### Energy crisis

Since 2007 South Africa has experienced an ongoing energy crisis that has negatively impacted the country's economy, its ability to create jobs, and reduce poverty. A lack of investment in new power generating capacity and an aging fleet of existing power plants was the initial cause of the crisis. The government owned power utility Eskom has been plagued with corruption and mismanagement, most notability during the presidency of Jacob Zuma, which has limited its ability to resolve the crisis.

### Xenophobia

The post-apartheid period has been marked by numerous outbreaks of xenophobic attacks against foreign migrants and asylum seekers from various conflict zones in Africa. An academic study conducted in 2006, found that South Africans showed levels of xenophobia greater than anywhere else in the world. The United Nations High Commissioner for Refugees (UNHCR) found that competition over jobs, business opportunities, public services and housing gave rise to tension among refugees, asylum seekers, migrants and host communities, identified as a main cause of the xenophobic violence. South Africa received more than 207,000 individual asylum applications in 2008 and a further 222,300 in 2009, representing nearly a four-fold rise in both years over the levels seen in 2007. These refugees and asylum seekers originated mainly from Zimbabwe, Burundi, Democratic Republic of the Congo, Rwanda, Eritrea, Ethiopia and Somalia.

### 2021 civil unrest

Civil unrest occurred in South Africa's KwaZulu-Natal and Gauteng provinces in July 2021, sparked by the imprisonment of former President Jacob Zuma for contempt of court, after he declined to testify at the Zondo Commission, an inquiry into allegations of corruption during his term as president from 2009 to 2018. Protests against the incarceration triggered wider rioting and looting, further exacerbated by job layoffs and economic woes worsened by the COVID-19 pandemic. The Economist called it the worst violence that South Africa had experienced since the end of Apartheid.
Police and military authorities were mobilised to quell the unrest. By mid-July, the South African National Defense Forces had deployed approximately 25,000 military personnel. As of 18 July, over 3,400 people had been arrested, while as of 22 July, 337 people had died in connection with the unrest.
The July 2021 unrest coincided with the Cape Town taxi conflict and Transnet ransomware attack leading to unproven speculation that they might have been connected.

### Post-apartheid heads of state

Under the post-apartheid Constitution the president is head of both state and government. The president is elected by the National Assembly and serves a term that expires at the next general election. A president may serve a maximum of two terms. In the event of a vacancy the Deputy President serves as Acting President.
| President | President | President | Term of office | Term of office | Term of office | Political party |
| # | Portrait | Name | Took office | Left office | Duration | Political party |
| 1 | | Nelson Mandela (1918–2013) | 10 May 1994 | 16 June 1999 | 5 years, 37 days | African National Congress |
| 2 | | Thabo Mbeki (1942–) | 16 June 1999 | 24 September 2008 (resigned) | 9 years, 100 days | African National Congress |
| 3 | | Kgalema Motlanthe (1949–) | 25 September 2008 | 9 May 2009 | 226 days | African National Congress |
| 4 | | Jacob Zuma (1942–) | 9 May 2009 | 14 February 2018 (resigned) | 8 years, 264 days | African National Congress |
| 5 | | Cyril Ramaphosa (1952–) | 15 February 2018 | Present | 7 years, 23 days | African National Congress |