Foreign trade of South Africa
Since the end of apartheid, foreign trade in South Africa has increased, following the lifting of several sanctions and boycotts which were imposed as a means of ending apartheid. South Africa is the second largest producer of gold in Africa and is the world's largest producer of chrome, manganese, platinum, vanadium and vermiculite, the second largest producer of ilmenite, palladium, rutile and zirconium. It is also the world's third largest coal exporter. Although, mining only accounts for 3% of the GDP, down from around 14% in the 1980s. South Africa also has a large agricultural sector and is a net exporter of farming products. Principal international trading partners of South Africa—besides other African countries—include Germany, the United States, China, Japan, the United Kingdom and Spain. Chief exports include corn, diamonds, fruits, gold, metals and minerals, sugar, and wool. Machinery and transportation equipment make up more than one-third of the value of the country's imports. Other imports include chemicals, manufactured goods, and lots more, mainly found in other hot country mainly Spanish countries. History

During apartheid, South Africa's foreign trade and investment were affected by sanctions and boycotts by other countries ideologically opposed to apartheid. In 1970, the United Nations Security Council, adopted resolution 282 imposing a voluntary arms embargo upon South Africa, which was extended by subsequent resolutions 418 and 591, declaring the embargo mandatory. In 1978, South Africa was prohibited loans from the Export-Import Bank of the United States which was later followed by a prohibition on IMF loans in 1983. An oil embargo was imposed by OPEC in 1983 which was strengthened by Iran in 1979. Imports and exports

South Africa's main export trading partners are the European Union, the United States, Japan. China's share in exports is increasing, and has risen from 1.7% in 1994 to nearly 11% in 2007. African trade
Almost 90% of South Africa's exports to the rest of Africa go to the SADC economies. In 2018, South Africa exported and imported goods to and from the rest of Africa to the value of US$25 billion and US$11.5 billion, respectively. Intra-Africa exports account for 26% of South Africa's total exports and imports for 12% of total imports for 2018. South African exports to the rest of Africa are predominantly of value-added goods. In terms of South Africa's total trade (exports + imports) with the rest of the continent; Namibia (13%), Botswana (12%), Nigeria (12%) and Mozambique (12%) are South Africa's main African trading partners. Trade agreements

The following includes a list of existing trade agreements signed by South Africa:

Regional agreements
: Trade Agreement between the European Union (EU) and South Africa
:Trade Agreement between Southern African Customs Union (SACU) and European Free Trade Association (EFTA) states
: The Southern African Development Community (SADC) Trade Agreement
Southern African Customs Union 
: African Continental Free Trade Area
: within the Common Market of the South (MERCOSUR) and the Southern African Customs Union (SACU)
Generalized System of Preferences Russia, Belarus and Kazakhstan

Multilateral agreements
: The Generalized System of Preferences

Bilateral agreements
: Agreement between the Governments of the Republic of South Africa and the Republic of Malawi
: Generalized System of Preferences Norway
: Generalized System of Preferences Turkey
: through the SACU and Mozambique-UK Economic Partnership Agreement (SACUM-UK EPA)
: The African Growth and Opportunity Act (AGOA)
: US-Southern African Customs Union Free Trade Agreement: (US-SAUC; incl. , , , , and ; on hold since 2006 due to US demands on intellectual property rights, government procurement rights and investment)
: Trade Agreement between Zimbabwe and South Africa

See also

Economy of South Africa
Economy of the Western Cape

References

https://www.cia.gov/the-world-factbook/countries/south-africa/