Eight years after the Second Boer War came to an end the Union of South Africa was created from the Cape and Natal colonies. By 1931 the union successfully gained independence from the United Kingdom, and in 1934 the United Party was formed, as the South African Party and National Party merged to form a reconciliation between Afrikaners and English-speaking "whites."
The Union entered World War II as an ally of the United Kingdom, subsequently dividing the party down the middle (as the National Party strongly opposed this decision).
At wars end, the National Party was elected power, and the new government classified all citizens into three races - each with their own rights and limitations. This became known as apartheid.
In 1961 South Africa became an independent republic, but to its great discredit, the government continued its official policy of racial segregation. In 1990, after three decades of brutal racial policies and the oppression of civil rights, the South African government began dismantling their discriminative laws and democratic elections were held in 1994.
The country's first multiracial election in 1994 was won by Nelson Mandela and the African National Congress (ANC) party. Mandela retired in 1999 and Thabo Mbeki, the deputy president, won the presidency in a landslide vote.
Mbeki easily won the election again in 2004, but in 2008, under pressure, Mbeki resigned and the Parliament elected Kgalema Motlanthe as interim president until the 2009 elections. Jacob Gedleyihlekisa Zuma was elected as the President in the 2009 general election.
Since the end of apartheid, unemployment has been very high. Many attribute this problem to the current government's policies and failure to achieve monetary and fiscal discipline, as well as the AIDS pandemic sweeping across Sub-Saharan Africa.
On the positive side, South Africa remains a popular tourist destination, and brings in over 850,000 tourists a month (200,000 of which come from outside the African continent).
In 2010 the country became the first African nation to host the FIFA World Cup, an event that brought hundreds of thousands of visitors into the country, and successfully boosted the economy.