South Africa contains some of the oldest archaeological sites in the world. Extensive fossil remains at the Sterkfontein, Kromdraai and Makapansgat caves suggest that various australopithecines existed in South Africa from about three million years ago. These were succeeded by various species of Homo, including Homo habilis, Homo erectus and modern humans, Homo sapiens.
Modern human beings have inhabited South Africa for more than 100,000 years. A century and a half after the discovery of the Cape Sea Route, the Dutch East India Company founded a refreshment station at what would become Cape Town in 1652. Cape Town became a British colony in 1806. European settlement expanded during the 1820s as the Boers (original Dutch, Flemish, German and French settlers) and the British Settlers claimed land in the north and east of the country. Conflicts arose among the Xhosa, Zulu and Afrikaner groups. However, the discovery of diamonds and later gold triggered the conflict known as the Anglo-Boer War as the Boers and the British fought for the control of the South African mineral wealth. Although the Boers were defeated, limited independence was given to South Africa in 1910 as a British dominion.
Anti-British policies focused on ultimate independence which was achieved in 1961 when South Africa was declared a republic. The leading National Party legislated for a continuation of racial segregation begun under Dutch and British colonial rule, Boer republics (and which in 1948 became legally institutionalized segregation known as apartheid), despite opposition both in and outside of the country.

In 1990 the then president F.W. de Klerk began to dismantle this legislation, and in 1994 the first democratic election was held in South Africa. This election brought Nelson Mandela and the current ruling party, the African National Congress to power, and the country rejoined the Commonwealth of Nations. South Africa is known for its diversity, and eleven official languages are recognised in its constitution. English is the most commonly spoken language in official and commercial public life, however it is only the fifth most spoken home language.
South Africa is ethnically diverse, with the largest Caucasian, Indian, and racially mixed communities in Africa. Although 79.6% of the South African population is Black, this category is neither culturally nor linguistically homogenous, as people within this classification speak a number of different Bantu languages, nine of which have official status. Midyear 2007, the South African population was estimated at 47.9 million

.
By UN classification South Africa is a middle-income country with an abundant supply of resources, well-developed financial, legal, communications, energy, and transport sectors, a stock exchange (the JSE Limited), that ranks among the top twenty in the world, and a modern infrastructure supporting an efficient distribution of goods to major urban centres throughout the entire region. South Africa is ranked 20th in the world in terms of GDP (PPP) as of 2007.

Advanced development is significantly localised around four areas: Cape Town, Port Elizabeth, Durban, and Pretoria/Johannesburg. Beyond these four economic centres, development is marginal and poverty is still prevalent despite government efforts. Consequently the vast majority of South Africans are poor. However, key marginal areas have experienced rapid growth recently. Such areas include Mossel Bay to Plettenberg Bay; Rustenburg area; Nelspruit area; Bloemfontein; Cape West Coast; and the KwaZulu-Natal North Coast. Even though South Africa has the seventh highest per capita income in Africa, only behind Libya, Mauritius it suffers from large income gaps and a dual economy marking it as a developing country.