South Africa, officially the Republic of South Africa (RSA), is the southernmost country in Africa. The country consists of nine provinces, and is bounded to the south by of coastline that stretches along the South Atlantic and Indian Ocean; to the north by the neighbouring countries of Namibia, Botswana, and Zimbabwe; and to the east and northeast by Mozambique and Eswatini. South Africa also encloses Lesotho. Covering an area of , the country has a population of over 63 million people, making it the sixth-most populated country in Africa, and 24th-most in the world. Pretoria is the administrative capital, while Cape Town, as the seat of Parliament, is the legislative capital, and Bloemfontein is regarded as the judicial capital. The largest and most populous city is Johannesburg, followed by Cape Town and Durban.

Archaeological findings suggest that various hominid species existed in South Africa about 2.5 million years ago, and modern humans inhabited the region over 100,000 years ago. The first known people were the indigenous Khoisan, and Bantu-speaking peoples, who migrated in waves, from west and central Africa to the region 2,000 to 1,000 years ago. In the north, the Kingdom of Mapungubwe formed in the 13th century, and the Venda Kingdom in the 17th century. In 1652, the Dutch established the first European settlement at Table Bay, Dutch Cape Colony. Its invasion in 1795, and the Battle of Blaauwberg in 1806 led to British occupation. The Mfecane, a period of significant upheaval, led to the formation of various African kingdoms, including the Zulu Kingdom. The region was further colonised, and the Mineral Revolution saw a shift towards industrialisation and urbanisation. Following the Second Boer War, the Union of South Africa was created in 1910 after the amalgamation of the Cape, Natal, Transvaal, and Orange River colonies, becoming a republic after the 1961 referendum. The multi-racial Cape Qualified Franchise in the Cape was gradually eroded, and the vast majority of Black South Africans were not enfranchised until 1994.

The National Party imposed apartheid in 1948, institutionalising previous racial segregation. After a struggle by the African National Congress and other anti-apartheid activists, both inside and outside the country, the repeal of discriminatory laws began in the mid-1980s. Universal elections took place in 1994, following which all racial groups have held political representation in the country's liberal democracy, which comprises a parliamentary republic and nine provinces. Recognised as a middle power in international affairs, South Africa maintains significant regional influence and is a member of BRICS+, the African Union (hosting the seat of the Pan-African Parliament), SADC, SACU, the Commonwealth of Nations, and the G20.

A developing and newly industrialised country, it has the largest economy in Africa by nominal GDP, is tied with Ethiopia for the most UNESCO World Heritage Sites in Africa, and is a biodiversity hotspot with unique biomes, plant, and animal life. South Africa encompasses a variety of cultures, languages, and religions, and has been called the "rainbow nation", especially in the wake of apartheid, to describe its diversity. Since the end of apartheid, government accountability and quality of life have substantially improved for non-white citizens. However, crime, violence, poverty, and inequality remain widespread, with about 32% of the population unemployed , while some 56% lived below the poverty line in 2014. Having the highest Gini coefficient of 0.67, South Africa is considered one of the most economically unequal countries in the world.

Etymology

The name "South Africa" is derived from the country's geographic location at the southern tip of Africa. Upon formation, the country was named the Union of South Africa in English and in Dutch, reflecting its origin from the unification of four British colonies. Since 1961, the long formal name in English has been the "Republic of South Africa" and in Afrikaans. The country has an official name in 12 official languages.South African Sign Language is also an official language

Mzansi, derived from the Xhosa noun meaning "south", is a colloquial name for South Africa, while some Pan-Africanist political parties prefer the term "Azania", which is a word originating from Greek, and not an African language.

History

Prehistory

South Africa contains some of the oldest archaeological and human-fossil sites in the world. Archaeologists have recovered extensive fossil remains from a series of caves in Gauteng known as the Cradle of Humankind, which has been declared a UNESCO World Heritage Site. The sites include Sterkfontein, one of the richest sites for hominin fossils in the world, as well as Swartkrans, Gondolin Cave, Kromdraai, Cooper's Cave and Malapa. The first hominin fossil discovered in Africa, the Taung Child, was found near Taung in 1924. Other hominin remains have come from the sites of Makapansgat in Limpopo; Cornelia and Florisbad in the Free State; Border Cave in KwaZulu-Natal; Klasies River Caves in the Eastern Cape; and Pinnacle Point, Elandsfontein and Die Kelders Cave in the Western Cape.

These finds suggest that various hominid species existed in South Africa from about three million years ago, starting with Australopithecus africanus, followed by Australopithecus sediba, Homo ergaster, Homo erectus, Homo rhodesiensis, Homo helmei, Homo naledi and modern humans (Homo sapiens). Modern humans have inhabited Southern Africa for at least 170,000 years. Various researchers have located pebble tools within the Vaal River valley.

Pre-colonial period

The indigenous San and Khoikhoi peoples of Southern Africa were predominantly hunter-gatherers and, in the case of the Khoikhoi, also practised pastoralism. Khoisan peoples may be the descendants of an early dispersal of anatomically modern humans to Southern Africa before 150,000 years ago. They were largely displaced or absorbed by the Bantu expansion which took place between 1,500 and 2,000 years ago.

Bantu settlers expanded from West Africa from approximately 3,000 BCE. Settlements of Bantu-speaking peoples, who were iron-using agriculturists and herdsmen, were present south of the Limpopo River (now the northern border with Botswana and Zimbabwe) by the 4th or 5th century. The earliest ironworks in modern-day KwaZulu-Natal are believed to date from around 1050. The southernmost group was the Xhosa people, whose language incorporates certain linguistic traits from the Khoisan languages, and who eventually reached the Great Fish River in the present-day Eastern Cape. As they migrated, these larger Iron Age populations displaced or assimilated earlier peoples. In Mpumalanga, several stone circles have been found along with a stone arrangement that has been named Adam's Calendar, and the ruins are thought to be created by the Bakone, a Northern Sotho group.

Around 1220, in the Limpopo-Shashe Basin, the elite of K2 moved to settle the flat-topped summit of Mapungubwe Hill, with the population settling below. Rainmaking was crucial to the development of sacral kingship, and several rainmaking sites have been found nearby including Ratho Kroonkop. By 1250, the capital of the Mapungubwe Kingdom had a population of 5,000 and the state covered 30,000 km2 (11,500 square miles), growing wealthy through the Indian Ocean trade. The events around Mapungubwe's collapse circa 1300 are unknown; however, trade routes shifted north from the Limpopo to the Zambezi, precipitating the rise of Great Zimbabwe. The hill was abandoned and Mapungubwe's population scattered.

In the Soutpansberg, interactions between early Shona inhabitants (possible from Mapungubwe), late-comer Shona and Sotho-speakers between the 15th and 17th centuries culminated in the formation of the Venda language and identity. In the late-17th century, a splinter group from the dynasty of the Rozvi Empire migrated south; they were the Singo. The Singo settled at Dzata, which became the capital of the Venda Kingdom, and came to subdue all of the Soutpansberg. In the late-18th century, following trade routes moving south, the state collapsed. The most powerful dynasties that remained were the Ramabulana Singo in the western Soutpansberg, and the Tshivhase Singo and Mphaphuli Singo in the eastern Soutpansberg.

Portuguese exploration

In 1487, the Portuguese explorer Bartolomeu Dias led the first European voyage to land in southern Africa. On 4 December, he landed at Walfisch Bay (now known as Walvis Bay in present-day Namibia). This was south of the furthest point reached in 1485 by his predecessor, the Portuguese navigator Diogo Cão, being Cape Cross, north of the bay. Dias continued down the western coast of southern Africa. After 8 January 1488, prevented by storms from proceeding along the coast, he sailed out of sight of land and passed the southernmost point of Africa without seeing it. He reached as far up the eastern coast of Africa as, what he called, , probably the present-day Groot River, in May 1488. On his return, he saw the cape, which he named ('Cape of Storms'). King John II renamed the point , or Cape of Good Hope, as it led to the riches of the East Indies. Dias' feat of navigation was immortalised in Luís de Camões' 1572 epic poem, Os Lusíadas.

In 1497 Vasco Da Gama set sail from Lisbon and became the first European to reach India in 1498 via the Cape of Good Hope, opening up oceanic trade between Europe and Asia. He bypassed the coast of present-day South Africa and made landfall in present-day Mozambique.

Dutch and British colonisation of the Cape

The Dutch first made contact with the coast of Southern Africa in 1595. With Portuguese maritime power declining in the early 17th century, English and Dutch merchants competed to dislodge Portugal's lucrative monopoly on the spice trade. British East India Company representatives sporadically called at the Cape in search of provisions from as early as 1601 but later came to favour Ascension Island and Saint Helena as ports of refuge. Dutch interest was aroused after 1647, when two employees of the Dutch East India Company were shipwrecked at the Cape for several months, and managed to survive by obtaining fresh water and meat from the indigenous peoples, and sowing crops in the fertile soil. Upon their return to Holland, they reported favourably on the Cape's potential as a "warehouse and garden" for provisions to stock passing ships for long voyages.

In 1652, a century and a half after the discovery of the Cape Route, Jan van Riebeeck established a station at the Cape of Good Hope, at what would become Cape Town, on behalf of the Dutch East India Company. In time, the Cape became home to a large population of Free Burghers. Dutch traders also brought thousands of enslaved people to the fledgling colony from present-day Indonesia, Madagascar, and eastern Africa. Some of the earliest mixed race communities in the country were formed between Free Burghers, enslaved people, and indigenous peoples. This led to the development of a new ethnic group, the Cape Coloureds, most of whom adopted the Dutch language and Christian faith. Conflicts over resources between the indigenous Khoisan people and Dutch settlers began in the 17th century and continued for centuries.

Dutch colonists' eastward expansion caused wars with the southwesterly migrating Xhosa nation, as both sides competed for the pastureland near the Great Fish River, which the colonists desired for grazing cattle. Free Burghers who became independent farmers on the frontier were known as Boers, with some (the ) adopting semi-nomadic lifestyles. The Boers formed loose militias, which they termed commandos, and forged alliances with Khoisan peoples to repel Xhosa raids. Both sides launched bloody but inconclusive offensives, and sporadic violence, often accompanied by livestock theft, remained common for several decades.